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

HttpPipelineSynchronousPolicy Class

Definition

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

public abstract class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy
type HttpPipelineSynchronousPolicy = class
    inherit HttpPipelinePolicy
Public MustInherit Class HttpPipelineSynchronousPolicy
Inherits HttpPipelinePolicy
Inheritance
HttpPipelineSynchronousPolicy

Constructors

HttpPipelineSynchronousPolicy()

Initializes a new instance of HttpPipelineSynchronousPolicy

Methods

OnReceivedResponse(HttpMessage)

Method is invoked after the response is received.

OnSendingRequest(HttpMessage)

Method is invoked before the request is sent.

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.

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.

Applies to