Method InvokeAsync
InvokeAsync<TResult>(ISingleClientProxy, HubMethod<TResult>, CancellationToken)
Invokes a method on the client and returns its result.
Declaration
public static Task<TResult> InvokeAsync<TResult>(this ISingleClientProxy client, HubMethod<TResult> method, CancellationToken cancellationToken = default)
Parameters
Returns
| Type |
Description |
| Task<TResult> |
|
Type Parameters
InvokeAsync<T1, TResult>(ISingleClientProxy, HubMethod<T1, TResult>, T1, CancellationToken)
Invokes a method with the specified argument on the client and returns its result.
Declaration
public static Task<TResult> InvokeAsync<T1, TResult>(this ISingleClientProxy client, HubMethod<T1, TResult> method, T1 arg1, CancellationToken cancellationToken = default)
Parameters
Returns
| Type |
Description |
| Task<TResult> |
|
Type Parameters
| Name |
Description |
| T1 |
|
| TResult |
|
InvokeAsync<T1, T2, TResult>(ISingleClientProxy, HubMethod<T1, T2, TResult>, T1, T2, CancellationToken)
Invokes a method with the specified arguments on the client and returns its result.
Declaration
public static Task<TResult> InvokeAsync<T1, T2, TResult>(this ISingleClientProxy client, HubMethod<T1, T2, TResult> method, T1 arg1, T2 arg2, CancellationToken cancellationToken = default)
Parameters
Returns
| Type |
Description |
| Task<TResult> |
|
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| TResult |
|
InvokeAsync<T1, T2, T3, TResult>(ISingleClientProxy, HubMethod<T1, T2, T3, TResult>, T1, T2, T3, CancellationToken)
Invokes a method with the specified arguments on the client and returns its result.
Declaration
public static Task<TResult> InvokeAsync<T1, T2, T3, TResult>(this ISingleClientProxy client, HubMethod<T1, T2, T3, TResult> method, T1 arg1, T2 arg2, T3 arg3, CancellationToken cancellationToken = default)
Parameters
Returns
| Type |
Description |
| Task<TResult> |
|
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
| TResult |
|