Add convenience extension methods for IPageApplicationModelConvention

This commit is contained in:
Pranav K 2017-02-27 15:49:12 -08:00
parent 5c96a7cdef
commit 7bca31d079
2 changed files with 2 additions and 5 deletions

View File

@ -53,9 +53,7 @@ namespace Microsoft.Extensions.DependencyInjection
internal static void AddServices(IServiceCollection services)
{
services.TryAddEnumerable(
ServiceDescriptor.Transient<
IConfigureOptions<RazorPagesOptions>,
RazorPagesOptionsSetup>());
ServiceDescriptor.Transient<IConfigureOptions<RazorPagesOptions>, RazorPagesOptionsSetup>());
services.TryAddEnumerable(
ServiceDescriptor.Singleton<IActionDescriptorProvider, PageActionDescriptorProvider>());
@ -78,7 +76,6 @@ namespace Microsoft.Extensions.DependencyInjection
services.TryAddSingleton<IActionDescriptorChangeProvider, PageActionDescriptorChangeProvider>();
services.TryAddSingleton<TempDataPropertyProvider>();
}
}
}

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// 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;