Delen via


DisposableHttpPipeline Class

Definition

An implementation of HttpPipeline that may contain resources that require disposal.

public sealed class DisposableHttpPipeline : Azure.Core.Pipeline.HttpPipeline, IDisposable
type DisposableHttpPipeline = class
    inherit HttpPipeline
    interface IDisposable
Public NotInheritable Class DisposableHttpPipeline
Inherits HttpPipeline
Implements IDisposable
Inheritance
DisposableHttpPipeline
Implements

Properties

ResponseClassifier

The ResponseClassifier instance used in this pipeline invocations.

(Inherited from HttpPipeline)

Methods

CreateMessage()

Creates a new HttpMessage instance.

(Inherited from HttpPipeline)
CreateMessage(RequestContext, ResponseClassifier)

Creates a new HttpMessage instance.

(Inherited from HttpPipeline)
CreateMessage(RequestContext) (Inherited from HttpPipeline)
CreateRequest()

Creates a new Request instance.

(Inherited from HttpPipeline)
Dispose()

Disposes the underlying transport if it is owned by the client, i.e. it was created via the Build method on HttpPipelineBuilder. If the underlying transport is not owned by the client, i.e. it was supplied as a custom transport on ClientOptions, it will not be disposed. The reason not to dispose a transport owned outside the client, i.e. one that was provided via ClientOptions is to account for scenarios where the custom transport may be shared across clients. In this case, it is possible to dispose of a transport still in use by other clients. When the transport is created internally, it can properly determine if a shared instance is in use.

Send(HttpMessage, CancellationToken)

Invokes the pipeline synchronously. After the task completes response would be set to the Response property.

(Inherited from HttpPipeline)
SendAsync(HttpMessage, CancellationToken)

Invokes the pipeline asynchronously. After the task completes response would be set to the Response property.

(Inherited from HttpPipeline)
SendRequest(Request, CancellationToken)

Invokes the pipeline synchronously with the provided request.

(Inherited from HttpPipeline)
SendRequestAsync(Request, CancellationToken)

Invokes the pipeline asynchronously with the provided request.

(Inherited from HttpPipeline)

Applies to