Method InvokeAsync
InvokeAsync(HubMessage, CancellationToken)
Sends a message to the server and waits for the server to finish processing it.
Declaration
public Task InvokeAsync(HubMessage message, CancellationToken cancellationToken = default)
Parameters
Returns
InvokeAsync<T1>(HubMessage<T1>, T1, CancellationToken)
Sends a message to the server and waits for the server to finish processing it.
Declaration
public Task InvokeAsync<T1>(HubMessage<T1> message, T1 arg1, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
InvokeAsync<T1, T2>(HubMessage<T1, T2>, T1, T2, CancellationToken)
Sends a message to the server and waits for the server to finish processing it.
Declaration
public Task InvokeAsync<T1, T2>(HubMessage<T1, T2> message, T1 arg1, T2 arg2, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
InvokeAsync<T1, T2, T3>(HubMessage<T1, T2, T3>, T1, T2, T3, CancellationToken)
Sends a message to the server and waits for the server to finish processing it.
Declaration
public Task InvokeAsync<T1, T2, T3>(HubMessage<T1, T2, T3> message, T1 arg1, T2 arg2, T3 arg3, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
InvokeAsync<T1, T2, T3, T4>(HubMessage<T1, T2, T3, T4>, T1, T2, T3, T4, CancellationToken)
Sends a message to the server and waits for the server to finish processing it.
Declaration
public Task InvokeAsync<T1, T2, T3, T4>(HubMessage<T1, T2, T3, T4> message, T1 arg1, T2 arg2, T3 arg3, T4 arg4, CancellationToken cancellationToken = default)
Parameters
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
| T4 |
|
InvokeAsync<TResult>(HubMethod<TResult>, CancellationToken)
Invokes a method on the server and returns its result.
Declaration
public Task<TResult> InvokeAsync<TResult>(HubMethod<TResult> method, CancellationToken cancellationToken = default)
Parameters
Returns
| Type |
Description |
| Task<TResult> |
|
Type Parameters
InvokeAsync<T1, TResult>(HubMethod<T1, TResult>, T1, CancellationToken)
Invokes a method on the server and returns its result.
Declaration
public Task<TResult> InvokeAsync<T1, TResult>(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>(HubMethod<T1, T2, TResult>, T1, T2, CancellationToken)
Invokes a method on the server and returns its result.
Declaration
public Task<TResult> InvokeAsync<T1, T2, TResult>(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>(HubMethod<T1, T2, T3, TResult>, T1, T2, T3, CancellationToken)
Invokes a method on the server and returns its result.
Declaration
public Task<TResult> InvokeAsync<T1, T2, T3, TResult>(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 |
|