// 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; using Microsoft.AspNet.Routing; namespace Microsoft.Extensions.DependencyInjection { /// /// Contains extension methods to . /// public static class ServiceCollectionExtensions { /// /// Configures a set of for the application. /// /// The services available in the application. /// An action to configure the . public static void ConfigureRouting( this IServiceCollection services, Action setupAction) { if (setupAction == null) { throw new ArgumentNullException(nameof(setupAction)); } services.Configure(setupAction); } } }