|
1 | 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. |
2 | 2 |
|
3 | | -namespace Microsoft.AspNetCore.Builder; |
| 3 | +#pragma warning disable SA1135 // Using directives should be qualified |
| 4 | +#pragma warning disable SA1200 // Using directives should be placed correctly |
4 | 5 |
|
5 | 6 | using Asp.Versioning; |
6 | 7 | using Asp.Versioning.ApiExplorer; |
7 | | -using Microsoft.AspNetCore.Routing; |
8 | 8 | using Microsoft.Extensions.Options; |
9 | 9 |
|
| 10 | +namespace Microsoft.AspNetCore.Builder; |
| 11 | + |
| 12 | +using Microsoft.AspNetCore.Routing; |
| 13 | +using Activator = Func<IEnumerable<IApiVersionMetadataCollationProvider>, ISunsetPolicyManager, IOptions<ApiExplorerOptions>, IApiVersionDescriptionProvider>; |
| 14 | + |
10 | 15 | internal sealed class ApiVersionDescriptionProviderFactory : IApiVersionDescriptionProviderFactory |
11 | 16 | { |
12 | 17 | private readonly ISunsetPolicyManager sunsetPolicyManager; |
13 | 18 | private readonly IApiVersionMetadataCollationProvider[] providers; |
14 | 19 | private readonly IOptions<ApiExplorerOptions> options; |
15 | | - private readonly Func<IEnumerable<IApiVersionMetadataCollationProvider>, ISunsetPolicyManager, IOptions<ApiExplorerOptions>, IApiVersionDescriptionProvider> activator; |
| 20 | + private readonly Activator activator; |
16 | 21 |
|
17 | 22 | public ApiVersionDescriptionProviderFactory( |
18 | | - Func<IEnumerable<IApiVersionMetadataCollationProvider>, ISunsetPolicyManager, IOptions<ApiExplorerOptions>, IApiVersionDescriptionProvider> activator, |
| 23 | + Activator activator, |
19 | 24 | ISunsetPolicyManager sunsetPolicyManager, |
20 | 25 | IEnumerable<IApiVersionMetadataCollationProvider> providers, |
21 | 26 | IOptions<ApiExplorerOptions> options ) |
|
0 commit comments