Dela via


IClientProxy.SendCoreAsync(String, Object[], CancellationToken) Method

Definition

Invokes a method on the connection(s) represented by the IClientProxy instance. Does not wait for a response from the receiver.

public System.Threading.Tasks.Task SendCoreAsync (string method, object[] args, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task SendCoreAsync (string method, object?[]? args, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task SendCoreAsync (string method, object?[] args, System.Threading.CancellationToken cancellationToken = default);
abstract member SendCoreAsync : string * obj[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SendCoreAsync (method As String, args As Object(), Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

method
String

Name of the method to invoke.

args
Object[]

A collection of arguments to pass to the client.

cancellationToken
CancellationToken

The token to monitor for cancellation requests. The default value is None.

Returns

A Task that represents the asynchronous invoke.

Applies to