From 352edcd7fe08e7efd77ce9e8c9a4f1dc5519092b Mon Sep 17 00:00:00 2001 From: Hao Kung Date: Wed, 11 Mar 2015 17:32:58 -0700 Subject: [PATCH] Remove configuration from AddDirectoryBrowser --- .../DirectoryBrowserServiceExtensions.cs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Microsoft.AspNet.StaticFiles/DirectoryBrowserServiceExtensions.cs b/src/Microsoft.AspNet.StaticFiles/DirectoryBrowserServiceExtensions.cs index bfd5cb9986..886207b57f 100644 --- a/src/Microsoft.AspNet.StaticFiles/DirectoryBrowserServiceExtensions.cs +++ b/src/Microsoft.AspNet.StaticFiles/DirectoryBrowserServiceExtensions.cs @@ -1,8 +1,8 @@ // 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.Framework.ConfigurationModel; using Microsoft.Framework.Internal; +using Microsoft.AspNet.StaticFiles; namespace Microsoft.Framework.DependencyInjection { @@ -17,17 +17,6 @@ namespace Microsoft.Framework.DependencyInjection /// /// public static IServiceCollection AddDirectoryBrowser([NotNull] this IServiceCollection services) - { - return services.AddDirectoryBrowser(configuration: null); - } - - /// - /// Adds directory browser middleware services. - /// - /// - /// - /// - public static IServiceCollection AddDirectoryBrowser([NotNull] this IServiceCollection services, IConfiguration configuration) { return services.AddWebEncoders(); }