MessageHandlerBase.Dispose Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
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
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) |
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
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 |