// Copyright (c) Microsoft Open Technologies, Inc. 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
{
///
/// Directory browsing options
///
public class DirectoryBrowserOptions : SharedOptionsBase
{
///
/// Enabled directory browsing in the current physical directory for all request paths
///
public DirectoryBrowserOptions()
: this(new SharedOptions())
{
}
///
/// Enabled directory browsing in the current physical directory for all request paths
///
///
public DirectoryBrowserOptions(SharedOptions sharedOptions)
: base(sharedOptions)
{
Formatter = new HtmlDirectoryFormatter();
}
///
/// The component that generates the view.
///
public IDirectoryFormatter Formatter { get; set; }
}
}