JsonRpc.Completion 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 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.