你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PipelinePosition Enum

Definition

The position at which to insert a PipelinePolicy into the default ClientPipeline policy collection.

public enum PipelinePosition
type PipelinePosition = 
Public Enum PipelinePosition
Inheritance
PipelinePosition

Fields

Name Value Description
PerCall 0

Insert the PipelinePolicy before the pipeline's RetryPolicy. Policies added to a pipeline in this position will run once per invocation of Send(PipelineMessage).

PerTry 1

Insert the PipelinePolicy after the pipeline's RetryPolicy. Policies added to a pipeline in this position will run each time the pipeline tries to send the Request.

BeforeTransport 2

Insert the PipelinePolicy just before the pipeline's Transport. Policies added to a pipeline in this position will run after all other polices in the ClientPipeline have viewed the Request and before they view the Response. Adding policies at this position should be done with care since changes made to the Request by a before-transport policy will not be visible to any logging policies that come before it in the pipeline.

Applies to