 | JsonRpcClientSendNotificationAsync Method |
[This is preliminary documentation and is subject to change.]
Asynchronously send a JSON RPC notification message.
Namespace:
JsonRpc.Client
Assembly:
JsonRpc.Commons (in JsonRpc.Commons.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntaxpublic virtual Task<ResponseMessage> SendNotificationAsync(
string methodName,
JToken parameters,
CancellationToken cancellationToken
)
Public Overridable Function SendNotificationAsync (
methodName As String,
parameters As JToken,
cancellationToken As CancellationToken
) As Task(Of ResponseMessage)
Dim instance As JsonRpcClient
Dim methodName As String
Dim parameters As JToken
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of ResponseMessage)
returnValue = instance.SendNotificationAsync(methodName,
parameters, cancellationToken)
public:
virtual Task<ResponseMessage^>^ SendNotificationAsync(
String^ methodName,
JToken^ parameters,
CancellationToken cancellationToken
)
abstract SendNotificationAsync :
methodName : string *
parameters : JToken *
cancellationToken : CancellationToken -> Task<ResponseMessage>
override SendNotificationAsync :
methodName : string *
parameters : JToken *
cancellationToken : CancellationToken -> Task<ResponseMessage>
Parameters
- methodName
- Type: SystemString
RPC method name. - parameters
- Type: JToken
The parameters of the invocation. Can be null. - cancellationToken
- Type: System.ThreadingCancellationToken
A token used to cancel the operation.
Return Value
Type:
TaskResponseMessageA task contains the response of the request, or that contains
null if the specified request does not need a response.
Exceptions
See Also