ClientPipeline.Create Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Create(ClientPipelineOptions)

Source:
ClientPipeline.cs
Source:
ClientPipeline.cs

Create an instance of a ClientPipeline from the provided ClientPipelineOptions.

C#
public static System.ClientModel.Primitives.ClientPipeline Create(System.ClientModel.Primitives.ClientPipelineOptions? options = default);

Parameters

options
ClientPipelineOptions

If provided, the ClientPipelineOptions to use to construct the ClientPipeline.

Returns

The created ClientPipeline instance.

Applies to

Azure SDK for .NET Preview وAzure SDK for .NET Latest
منتج الإصدارات
Azure SDK for .NET Latest, Preview

Create(ClientPipelineOptions, ReadOnlySpan<PipelinePolicy>, ReadOnlySpan<PipelinePolicy>, ReadOnlySpan<PipelinePolicy>)

Source:
ClientPipeline.cs
Source:
ClientPipeline.cs

Create an instance of a ClientPipeline from the provided ClientPipelineOptions and PipelinePolicy collections.

C#
public static System.ClientModel.Primitives.ClientPipeline Create(System.ClientModel.Primitives.ClientPipelineOptions options, ReadOnlySpan<System.ClientModel.Primitives.PipelinePolicy> perCallPolicies, ReadOnlySpan<System.ClientModel.Primitives.PipelinePolicy> perTryPolicies, ReadOnlySpan<System.ClientModel.Primitives.PipelinePolicy> beforeTransportPolicies);

Parameters

options
ClientPipelineOptions

The ClientPipelineOptions to use to construct the ClientPipeline.

perCallPolicies
ReadOnlySpan<PipelinePolicy>

A collection of PipelinePolicy instances to add to the default pipeline before the pipeline's retry policy.

perTryPolicies
ReadOnlySpan<PipelinePolicy>

A collection of PipelinePolicy instances to add to the default pipeline after the pipeline's retry policy.

beforeTransportPolicies
ReadOnlySpan<PipelinePolicy>

A collection of PipelinePolicy instances to add to the default pipeline before the pipeline's transport.

Returns

The created ClientPipeline instance.

Remarks

Policies provided in options are intended to come from the end-user of a client who has passed the ClientPipelineOptions instance to the client's constructor. The client constructor implementation is intended to pass client-specific policies using the perCallPolicies, perTryPolicies, and beforeTransportPolicies parameters and should not modify the ClientPipelineOptions provided by the client user.

Applies to

Azure SDK for .NET Preview وAzure SDK for .NET Latest
منتج الإصدارات
Azure SDK for .NET Latest, Preview