<PackageReference Include="System.ClientModel" Version="1.8.0" />

System.ClientModel.Primitives.ClientPipelineOptions

public class ClientPipelineOptions
Options that control the creation of a ClientPipeline used by a service client to send and receive HTTP messages. Service clients must create a client-specific subtype of this class to pass to their constructors to allow for service-specific options with a client-wide scope.

The options to be used to configure logging within the ClientPipeline.

public bool? EnableDistributedTracing { get; set; }

Gets or sets whether distributed tracing should be enabled. If null, this value will be treated as true. The default is null.

public PipelinePolicy MessageLoggingPolicy { get; set; }

Gets or sets the PipelinePolicy to be used by the ClientPipeline for logging.

public TimeSpan? NetworkTimeout { get; set; }

The timeout applied to an individual network operation.

public PipelinePolicy RetryPolicy { get; set; }

Gets or sets the PipelinePolicy to be used by the ClientPipeline for handling retry logic.

public PipelineTransport Transport { get; set; }

Gets or sets the PipelineTransport to be used by the ClientPipeline for sending and receiving HTTP messages.

public void AddPolicy(PipelinePolicy policy, PipelinePosition position)

Adds the provided PipelinePolicy to the default ClientPipeline.

protected void AssertNotFrozen()

Assert that Freeze has not been called on this ClientPipelineOptions instance.

public virtual void Freeze()

Freeze this instance of ClientPipelineOptions. After this method has been called, any attempt to set properties on the instance or call methods that would change its state will throw InvalidOperationException.