Show / Hide Table of Contents

Class HttpPipelineSynchronousPolicy

Represents a HttpPipelinePolicy that doesn't do any asynchronous or synchronously blocking operations.

Inheritance
System.Object
HttpPipelinePolicy
HttpPipelineSynchronousPolicy
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Core.dll
Syntax
[System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers]
public abstract class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy

Constructors

HttpPipelineSynchronousPolicy()

Initializes a new instance of HttpPipelineSynchronousPolicy

Declaration
protected HttpPipelineSynchronousPolicy ();

Methods

OnReceivedResponse(HttpMessage)

Method is invoked after the response is received.

Declaration
public virtual void OnReceivedResponse (Azure.Core.HttpMessage message);
Parameters
HttpMessage message

The HttpMessage containing the response.

OnSendingRequest(HttpMessage)

Method is invoked before the request is sent.

Declaration
public virtual void OnSendingRequest (Azure.Core.HttpMessage message);
Parameters
HttpMessage message

The HttpMessage containing the request.

Process(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>)

Applies the policy to the message. Implementers are expected to mutate Request before calling ProcessNextAsync(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>) and observe the Response changes after.

Declaration
public override void Process (Azure.Core.HttpMessage message, ReadOnlyMemory<Azure.Core.Pipeline.HttpPipelinePolicy> pipeline);
Parameters
HttpMessage message

The HttpMessage this policy would be applied to.

System.ReadOnlyMemory<HttpPipelinePolicy> pipeline

The set of HttpPipelinePolicy to execute after current one.

ProcessAsync(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>)

Applies the policy to the message. Implementers are expected to mutate Request before calling ProcessNextAsync(HttpMessage, ReadOnlyMemory<HttpPipelinePolicy>) and observe the Response changes after.

Declaration
public override System.Threading.Tasks.ValueTask ProcessAsync (Azure.Core.HttpMessage message, ReadOnlyMemory<Azure.Core.Pipeline.HttpPipelinePolicy> pipeline);
Parameters
HttpMessage message

The HttpMessage this policy would be applied to.

System.ReadOnlyMemory<HttpPipelinePolicy> pipeline

The set of HttpPipelinePolicy to execute after current one.

Returns
System.Threading.Tasks.ValueTask

The System.Threading.Tasks.ValueTask representing the asynchronous operation.

Back to top Azure SDK for .NET