37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.AspNet.StaticFiles.Infrastructure;
|
|
|
|
namespace Microsoft.AspNet.StaticFiles
|
|
{
|
|
/// <summary>
|
|
/// Directory browsing options
|
|
/// </summary>
|
|
public class DirectoryBrowserOptions : SharedOptionsBase<DirectoryBrowserOptions>
|
|
{
|
|
/// <summary>
|
|
/// Enabled directory browsing for all request paths
|
|
/// </summary>
|
|
public DirectoryBrowserOptions()
|
|
: this(new SharedOptions())
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enabled directory browsing all request paths
|
|
/// </summary>
|
|
/// <param name="sharedOptions"></param>
|
|
public DirectoryBrowserOptions(SharedOptions sharedOptions)
|
|
: base(sharedOptions)
|
|
{
|
|
Formatter = new HtmlDirectoryFormatter();
|
|
}
|
|
|
|
/// <summary>
|
|
/// The component that generates the view.
|
|
/// </summary>
|
|
public IDirectoryFormatter Formatter { get; set; }
|
|
}
|
|
}
|