Share via


MessageHandlerBase.Dispose Method

Definition

Overloads

Dispose()
Obsolete.

Disposes this instance, and cancels any pending read or write operations.

Dispose(Boolean)

Disposes resources allocated by this instance that are common to both reading and writing.

Dispose()

Caution

Call IAsyncDisposable.DisposeAsync instead.

Disposes this instance, and cancels any pending read or write operations.

public void Dispose ();
[System.Obsolete("Call IAsyncDisposable.DisposeAsync instead.")]
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
[<System.Obsolete("Call IAsyncDisposable.DisposeAsync instead.")>]
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

Implements

Attributes

Applies to

Dispose(Boolean)

Disposes resources allocated by this instance that are common to both reading and writing.

protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

Parameters

disposing
Boolean

true when being disposed; false when being finalized.

Remarks

This method is called by DisposeAsync() after both DisposeReader() and DisposeWriter() have completed.

Overrides of this method *should* call the base method as well.

Applies to