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