Share via


JsonRpc.Completion Property

Definition

Gets a Task that completes when this instance is disposed or when listening has stopped whether by error, disposal or the stream closing.

public System.Threading.Tasks.Task Completion { get; }
member this.Completion : System.Threading.Tasks.Task
Public ReadOnly Property Completion As Task

Property Value

Exceptions

Thrown when StartListening() has not yet been called.

Remarks

The returned Task may transition to a faulted state for exceptions fatal to the protocol or this instance.

When local RPC target objects or methods have been added, those methods may still be running from prior RPC requests when this property completes. Track their completion with the DispatchCompletion property.

Applies to