ClientOptions Class

Definition

Base type for all client option types, exposes various common client options like Diagnostics, Retry, Transport.

public abstract class ClientOptions
type ClientOptions = class
Public MustInherit Class ClientOptions
Inheritance
System.Object
ClientOptions
Derived

Constructors

ClientOptions()

Creates a new instance of ClientOptions.

Properties

Diagnostics

Gets the client diagnostic options.

Retry

Gets the client retry options.

Transport

The HttpPipelineTransport to be used for this client. Defaults to an instance of HttpClientTransport.

Methods

AddPolicy(HttpPipelinePolicy, HttpPipelinePosition)

Adds an HttpPipeline policy into the client pipeline. The position of policy in the pipeline is controlled by position parameter. If you want the policy to execute once per client request use PerCall otherwise use PerRetry to run the policy for every retry. Note that the same instance of policy would be added to all pipelines of client constructed using this ClientOptions object.

Applies to