// 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 System; namespace Microsoft.Extensions.DependencyInjection { /// /// Extension methods for adding directory browser services. /// public static class DirectoryBrowserServiceExtensions { /// /// Adds directory browser middleware services. /// /// The to add services to. /// The so that additional calls can be chained. public static IServiceCollection AddDirectoryBrowser(this IServiceCollection services) { if (services == null) { throw new ArgumentNullException(nameof(services)); } services.AddWebEncoders(); return services; } } }