Sdílet prostřednictvím


CosmosClientBuilder.AddCustomHandlers(RequestHandler[]) Method

Definition

Sets an array of custom handlers to the request. The handlers will be chained in the order listed. The InvokerHandler.InnerHandler is required to be null to allow the pipeline to chain the handlers.

public Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder AddCustomHandlers (params Microsoft.Azure.Cosmos.RequestHandler[] customHandlers);
member this.AddCustomHandlers : Microsoft.Azure.Cosmos.RequestHandler[] -> Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder
Public Function AddCustomHandlers (ParamArray customHandlers As RequestHandler()) As CosmosClientBuilder

Parameters

customHandlers
RequestHandler[]

A list of RequestHandler instaces to add to the pipeline.

Returns

The current CosmosClientBuilder.

Applies to

See also