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.

C#
public void Dispose ();
C#
[System.Obsolete("Call IAsyncDisposable.DisposeAsync instead.")]
public void Dispose ();

Implements

Attributes

Applies to

StreamJsonRpc 2.9 and other versions
Product Versions (Obsolete)
StreamJsonRpc 2.0, 2.1, 2.2 (2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9)

Dispose(Boolean)

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

C#
protected virtual void Dispose (bool disposing);

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

StreamJsonRpc 2.9 and other versions
Product Versions
StreamJsonRpc 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9