12 implementations of IOpenApiDocumentTransformer
Microsoft.AspNetCore.OpenApi (3)
Transformers\DelegateOpenApiDocumentTransformer.cs (1)
9internal sealed class DelegateOpenApiDocumentTransformer : IOpenApiDocumentTransformer
Transformers\Implementations\OpenApiSchemaReferenceTransformer.cs (1)
15internal sealed class OpenApiSchemaReferenceTransformer : IOpenApiDocumentTransformer
Transformers\TypeBasedOpenApiDocumentTransformer.cs (1)
11internal sealed class TypeBasedOpenApiDocumentTransformer : IOpenApiDocumentTransformer
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
TransformersBenchmark.cs (1)
156private class DocumentTransformer : IOpenApiDocumentTransformer
Microsoft.AspNetCore.OpenApi.Tests (7)
Transformers\DocumentTransformerTests.cs (3)
243private class ActivatedTransformer : IOpenApiDocumentTransformer 252private class DisposableTransformer : IOpenApiDocumentTransformer, IDisposable 270private class AsyncDisposableTransformer : IOpenApiDocumentTransformer, IAsyncDisposable
Transformers\OpenApiOptionsTests.cs (1)
180private class TestOpenApiDocumentTransformer : IOpenApiDocumentTransformer
Transformers\OperationTransformerTests.cs (1)
110private sealed class MyDocumentationTransformer : IOpenApiDocumentTransformer
Transformers\TypeBasedTransformerLifetimeTests.cs (2)
400private class ActivatedDocumentTransformer : IOpenApiDocumentTransformer 415private class ActivatedDocumentTransformerWithDependency : IOpenApiDocumentTransformer
Sample (1)
Transformers\AddContactTransformer.cs (1)
9public sealed class AddContactTransformer : IOpenApiDocumentTransformer
14 references to IOpenApiDocumentTransformer
Microsoft.AspNetCore.OpenApi (9)
Services\OpenApiOptions.cs (6)
17internal readonly List<IOpenApiDocumentTransformer> DocumentTransformers = []; 64/// <typeparam name="TTransformerType">The type of the <see cref="IOpenApiDocumentTransformer"/> to instantiate.</typeparam> 67where TTransformerType : IOpenApiDocumentTransformer 74/// Registers a given instance of <see cref="IOpenApiDocumentTransformer"/> on the current <see cref="OpenApiOptions"/> instance. 76/// <param name="transformer">The <see cref="IOpenApiDocumentTransformer"/> instance to use.</param> 78public OpenApiOptions AddDocumentTransformer(IOpenApiDocumentTransformer transformer)
Transformers\TypeBasedOpenApiDocumentTransformer.cs (3)
25var transformer = _transformerFactory.Invoke(context.ApplicationServices, []) as IOpenApiDocumentTransformer; 26Debug.Assert(transformer != null, $"The type {_transformerType} does not implement {nameof(IOpenApiDocumentTransformer)}.");
Microsoft.AspNetCore.OpenApi.Tests (4)
Transformers\DocumentTransformerTests.cs (1)
289private class ActivatedTransformerWithDependency(Dependency dependency) : IOpenApiDocumentTransformer
Transformers\OpenApiOptionsTests.cs (3)
24var insertedTransformer = Assert.Single(options.DocumentTransformers); 42var insertedTransformer = Assert.Single(options.DocumentTransformers); 59var insertedTransformer = Assert.Single(options.DocumentTransformers);
Sample (1)
Transformers\AddBearerSecuritySchemeTransformer.cs (1)
10public sealed class BearerSecuritySchemeTransformer(IAuthenticationSchemeProvider authenticationSchemeProvider) : IOpenApiDocumentTransformer