Show / Hide Table of Contents

Class DisposableHttpPipeline

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

Inheritance
System.Object
HttpPipeline
DisposableHttpPipeline
Inherited Members
HttpPipeline.CreateMessage()
HttpPipeline.CreateMessage(RequestContext)
HttpPipeline.CreateMessage(RequestContext, ResponseClassifier)
HttpPipeline.CreateRequest()
HttpPipeline.ResponseClassifier
HttpPipeline.Send(HttpMessage, CancellationToken)
HttpPipeline.SendAsync(HttpMessage, CancellationToken)
HttpPipeline.SendRequest(Request, CancellationToken)
HttpPipeline.SendRequestAsync(Request, CancellationToken)
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Core.dll
Syntax
public sealed class DisposableHttpPipeline : Azure.Core.Pipeline.HttpPipeline, IDisposable

Methods

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.

Declaration
public void Dispose ();
Back to top Azure SDK for .NET