Click or drag to resize

StreamRpcServerHandlerTryCancelRequest Method

[This is preliminary documentation and is subject to change.]

Tries to cancel the specified request by request id.

Namespace:  JsonRpc.Streams
Assembly:  JsonRpc.Streams (in JsonRpc.Streams.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntax
public bool TryCancelRequest(
	MessageId id
)

Parameters

id
Type: JsonRpc.MessagesMessageId
Id of the request to cancel.

Return Value

Type: Boolean
true if the specified request has been cancelled. false if the specified request id has not found.
Exceptions
ExceptionCondition
NotSupportedExceptionSupportsRequestCancellation is not specified in the constructor, so cancellation is not supported.
Remarks
If cancellation is supported, you may cancel an arbitrary request in the JsonRpcService via IRequestCancellationFeature.
See Also