Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit 352edcd

Browse files
committed
Remove configuration from AddDirectoryBrowser
1 parent e7b0a76 commit 352edcd

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/Microsoft.AspNet.StaticFiles/DirectoryBrowserServiceExtensions.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
using Microsoft.Framework.ConfigurationModel;
54
using Microsoft.Framework.Internal;
5+
using Microsoft.AspNet.StaticFiles;
66

77
namespace Microsoft.Framework.DependencyInjection
88
{
@@ -17,17 +17,6 @@ public static class DirectoryBrowserServiceExtensions
1717
/// <param name="services"></param>
1818
/// <returns></returns>
1919
public static IServiceCollection AddDirectoryBrowser([NotNull] this IServiceCollection services)
20-
{
21-
return services.AddDirectoryBrowser(configuration: null);
22-
}
23-
24-
/// <summary>
25-
/// Adds directory browser middleware services.
26-
/// </summary>
27-
/// <param name="services"></param>
28-
/// <param name="configuration"></param>
29-
/// <returns></returns>
30-
public static IServiceCollection AddDirectoryBrowser([NotNull] this IServiceCollection services, IConfiguration configuration)
3120
{
3221
return services.AddWebEncoders();
3322
}

0 commit comments

Comments
 (0)