Condividi tramite


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