Share via


JsonRpcTargetOptions.DisposeOnDisconnect Property

Definition

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.

Applies to