OpenApiOptions.AddDocumentTransformer Method

Definition

Overloads

AddDocumentTransformer(IOpenApiDocumentTransformer)

Registers a given instance of IOpenApiDocumentTransformer on the current OpenApiOptions instance.

AddDocumentTransformer(Func<OpenApiDocument,OpenApiDocumentTransformerContext,CancellationToken,Task>)

Registers a given delegate as a document transformer on the current OpenApiOptions instance.

AddDocumentTransformer<TTransformerType>()

Registers a new document transformer on the current OpenApiOptions instance.

AddDocumentTransformer(IOpenApiDocumentTransformer)

Source:
OpenApiOptions.cs

Registers a given instance of IOpenApiDocumentTransformer on the current OpenApiOptions instance.

public Microsoft.AspNetCore.OpenApi.OpenApiOptions AddDocumentTransformer (Microsoft.AspNetCore.OpenApi.IOpenApiDocumentTransformer transformer);
member this.AddDocumentTransformer : Microsoft.AspNetCore.OpenApi.IOpenApiDocumentTransformer -> Microsoft.AspNetCore.OpenApi.OpenApiOptions
Public Function AddDocumentTransformer (transformer As IOpenApiDocumentTransformer) As OpenApiOptions

Parameters

transformer
IOpenApiDocumentTransformer

The IOpenApiDocumentTransformer instance to use.

Returns

The OpenApiOptions instance for further customization.

Applies to

AddDocumentTransformer(Func<OpenApiDocument,OpenApiDocumentTransformerContext,CancellationToken,Task>)

Source:
OpenApiOptions.cs

Registers a given delegate as a document transformer on the current OpenApiOptions instance.

public Microsoft.AspNetCore.OpenApi.OpenApiOptions AddDocumentTransformer (Func<Microsoft.OpenApi.Models.OpenApiDocument,Microsoft.AspNetCore.OpenApi.OpenApiDocumentTransformerContext,System.Threading.CancellationToken,System.Threading.Tasks.Task> transformer);
member this.AddDocumentTransformer : Func<Microsoft.OpenApi.Models.OpenApiDocument, Microsoft.AspNetCore.OpenApi.OpenApiDocumentTransformerContext, System.Threading.CancellationToken, System.Threading.Tasks.Task> -> Microsoft.AspNetCore.OpenApi.OpenApiOptions
Public Function AddDocumentTransformer (transformer As Func(Of OpenApiDocument, OpenApiDocumentTransformerContext, CancellationToken, Task)) As OpenApiOptions

Parameters

transformer
Func<OpenApiDocument,OpenApiDocumentTransformerContext,CancellationToken,Task>

The delegate representing the document transformer.

Returns

The OpenApiOptions instance for further customization.

Applies to

AddDocumentTransformer<TTransformerType>()

Source:
OpenApiOptions.cs

Registers a new document transformer on the current OpenApiOptions instance.

public Microsoft.AspNetCore.OpenApi.OpenApiOptions AddDocumentTransformer<TTransformerType> () where TTransformerType : Microsoft.AspNetCore.OpenApi.IOpenApiDocumentTransformer;
member this.AddDocumentTransformer : unit -> Microsoft.AspNetCore.OpenApi.OpenApiOptions (requires 'ransformerType :> Microsoft.AspNetCore.OpenApi.IOpenApiDocumentTransformer)
Public Function AddDocumentTransformer(Of TTransformerType As IOpenApiDocumentTransformer) () As OpenApiOptions

Type Parameters

TTransformerType

The type of the IOpenApiDocumentTransformer to instantiate.

Returns

The OpenApiOptions instance for further customization.

Applies to