1 instantiation of OpenApiSchemaTransformerContext
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
156var context = new OpenApiSchemaTransformerContext
21 references to OpenApiSchemaTransformerContext
Microsoft.AspNetCore.OpenApi (9)
Services\OpenApiOptions.cs (1)
167public OpenApiOptions AddSchemaTransformer(Func<OpenApiSchema, OpenApiSchemaTransformerContext, CancellationToken, Task> transformer)
Services\Schemas\OpenApiSchemaService.cs (2)
156var context = new OpenApiSchemaTransformerContext 175OpenApiSchemaTransformerContext context,
Transformers\DelegateOpenApiSchemaTransformer.cs (3)
10private readonly Func<OpenApiSchema, OpenApiSchemaTransformerContext, CancellationToken, Task> _transformer; 12public DelegateOpenApiSchemaTransformer(Func<OpenApiSchema, OpenApiSchemaTransformerContext, CancellationToken, Task> transformer) 17public async Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken)
Transformers\IOpenApiSchemaTransformer.cs (2)
17/// <param name="context">The <see cref="OpenApiSchemaTransformerContext"/> associated with the <see paramref="schema"/>.</param> 20Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken);
Transformers\TypeBasedOpenApiSchemaTransformer.cs (1)
33public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
TransformersBenchmark.cs (1)
176public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken)
Microsoft.AspNetCore.OpenApi.Tests (10)
Transformers\OpenApiOptionsTests.cs (2)
128var transformer = new Func<OpenApiSchema, OpenApiSchemaTransformerContext, CancellationToken, Task>((schema, context, cancellationToken) => 198public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken)
Transformers\SchemaTransformerTests.cs (6)
43static void ValidateContext(OpenApiSchemaTransformerContext context) 745static void UseNotSchemaTransformer(OpenApiOptions options, Func<OpenApiSchema, OpenApiSchemaTransformerContext, CancellationToken, Task> func) 848public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken) 869public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken) 888public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken) 897public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken)
Transformers\TypeBasedTransformerLifetimeTests.cs (2)
347public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken) 365public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken)
Sample (1)
Transformers\AddExternalDocsTransformer.cs (1)
28public Task TransformAsync(OpenApiSchema schema, OpenApiSchemaTransformerContext context, CancellationToken cancellationToken)