11 references to OpenApiDocumentService
Microsoft.AspNetCore.OpenApi (11)
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (2)
55
var
documentService = context.RequestServices.GetRequiredKeyedService<
OpenApiDocumentService
>(lowercasedDocumentName);
Extensions\OpenApiServiceCollectionExtensions.cs (3)
70
services.AddSingleton(new NamedService<
OpenApiDocumentService
>(lowercasedDocumentName));
132
services.TryAddKeyedSingleton<
OpenApiDocumentService
>(KeyedService.AnyKey);
133
services.TryAddKeyedSingleton<IOpenApiDocumentProvider,
OpenApiDocumentService
>(KeyedService.AnyKey);
Services\OpenApiDocumentProvider.cs (3)
50
var
targetDocumentService = serviceProvider.GetRequiredKeyedService<
OpenApiDocumentService
>(lowercasedDocumentName);
66
var documentServices = serviceProvider.GetServices<NamedService<
OpenApiDocumentService
>>();
Transformers\DelegateOpenApiDocumentTransformer.cs (2)
32
var
documentService = context.ApplicationServices.GetRequiredKeyedService<
OpenApiDocumentService
>(context.DocumentName);
Transformers\TypeBasedOpenApiOperationTransformer.cs (1)
30
/// Throw because the activate instance is invoked by the <see cref="
OpenApiDocumentService
" />.