10 references to OpenApiDocumentService
Microsoft.AspNetCore.OpenApi (10)
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (2)
43
var
documentService = context.RequestServices.GetKeyedService<
OpenApiDocumentService
>(lowercasedDocumentName);
Extensions\OpenApiServiceCollectionExtensions.cs (2)
114
services.AddKeyedSingleton<
OpenApiDocumentService
>(documentName);
118
services.AddSingleton(new NamedService<
OpenApiDocumentService
>(documentName));
Services\OpenApiDocumentProvider.cs (3)
46
var
targetDocumentService = serviceProvider.GetRequiredKeyedService<
OpenApiDocumentService
>(documentName);
62
var documentServices = serviceProvider.GetServices<NamedService<
OpenApiDocumentService
>>();
Transformers\DelegateOpenApiDocumentTransformer.cs (2)
33
var
documentService = context.ApplicationServices.GetRequiredKeyedService<
OpenApiDocumentService
>(context.DocumentName);
Transformers\TypeBasedOpenApiOperationTransformer.cs (1)
31
/// Throw because the activate instance is invoked by the <see cref="
OpenApiDocumentService
" />.