JsonRpcTargetOptions.DisposeOnDisconnect Property
Definition
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.
Gets or sets a value indicating whether to dispose of the target object when the connection with the remote party is lost.
public bool DisposeOnDisconnect { get; set; }
member this.DisposeOnDisconnect : bool with get, set
Public Property DisposeOnDisconnect As Boolean
Property Value
Remarks
The target object may implement IAsyncDisposable, IAsyncDisposable or IDisposable. The first implemented interface from this list is the one whose dispose method will be invoked.
Exceptions thrown from the dispose method will be aggregated into Completion.