1 instantiation of OpenApiOperationTransformerContext
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
249var operationContext = new OpenApiOperationTransformerContext
26 references to OpenApiOperationTransformerContext
Microsoft.AspNetCore.OpenApi (14)
Services\OpenApiDocumentService.cs (5)
45/// Cache of <see cref="OpenApiOperationTransformerContext"/> instances keyed by the 50private readonly ConcurrentDictionary<string, OpenApiOperationTransformerContext> _operationTransformerContextCache = new(); 55internal bool TryGetCachedOperationTransformerContext(string descriptionId, [NotNullWhen(true)] out OpenApiOperationTransformerContext? context) 152Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> callback, 249var operationContext = new OpenApiOperationTransformerContext
Services\OpenApiOptions.cs (1)
129public OpenApiOptions AddOperationTransformer(Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> transformer)
Transformers\DelegateOpenApiDocumentTransformer.cs (2)
12private readonly Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task>? _operationTransformer; 19public DelegateOpenApiDocumentTransformer(Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> transformer)
Transformers\DelegateOpenApiOperationTransformer.cs (3)
10private readonly Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> _transformer; 12public DelegateOpenApiOperationTransformer(Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task> transformer) 17public async Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken)
Transformers\IOpenApiOperationTransformer.cs (2)
17/// <param name="context">The <see cref="OpenApiOperationTransformerContext"/> associated with the <see paramref="operation"/>.</param> 20Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken);
Transformers\TypeBasedOpenApiOperationTransformer.cs (1)
33public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
TransformersBenchmark.cs (1)
167public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken)
Microsoft.AspNetCore.OpenApi.Tests (10)
Transformers\OpenApiOptionsTests.cs (2)
71var transformer = new Func<OpenApiOperation, OpenApiOperationTransformerContext, CancellationToken, Task>((operation, context, cancellationToken) => 190public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken)
Transformers\OperationTransformerTests.cs (6)
121public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken) 131public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken) 483public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken) 501public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken) 520public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken) 529public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken)
Transformers\TypeBasedTransformerLifetimeTests.cs (2)
379public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken) 394public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken)
Sample (1)
Transformers\AddExternalDocsTransformer.cs (1)
11public Task TransformAsync(OpenApiOperation operation, OpenApiOperationTransformerContext context, CancellationToken cancellationToken)