Method On
On(HubMessage, Action)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On(HubMessage message, Action handler)
Parameters
Returns
On(HubMessage, Func<Task>)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On(HubMessage message, Func<Task> handler)
Parameters
Returns
On<T1>(HubMessage<T1>, Action<T1>)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On<T1>(HubMessage<T1> message, Action<T1> handler)
Parameters
Returns
Type Parameters
On<T1>(HubMessage<T1>, Func<T1, Task>)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On<T1>(HubMessage<T1> message, Func<T1, Task> handler)
Parameters
Returns
Type Parameters
On<T1, T2>(HubMessage<T1, T2>, Action<T1, T2>)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On<T1, T2>(HubMessage<T1, T2> message, Action<T1, T2> handler)
Parameters
Returns
Type Parameters
On<T1, T2>(HubMessage<T1, T2>, Func<T1, T2, Task>)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On<T1, T2>(HubMessage<T1, T2> message, Func<T1, T2, Task> handler)
Parameters
Returns
Type Parameters
On<T1, T2, T3>(HubMessage<T1, T2, T3>, Action<T1, T2, T3>)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On<T1, T2, T3>(HubMessage<T1, T2, T3> message, Action<T1, T2, T3> handler)
Parameters
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
On<T1, T2, T3>(HubMessage<T1, T2, T3>, Func<T1, T2, T3, Task>)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On<T1, T2, T3>(HubMessage<T1, T2, T3> message, Func<T1, T2, T3, Task> handler)
Parameters
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
On<T1, T2, T3, T4>(HubMessage<T1, T2, T3, T4>, Action<T1, T2, T3, T4>)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On<T1, T2, T3, T4>(HubMessage<T1, T2, T3, T4> message, Action<T1, T2, T3, T4> handler)
Parameters
| Type |
Name |
Description |
| HubMessage<T1, T2, T3, T4> |
message |
|
| Action<T1, T2, T3, T4> |
handler |
|
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
| T4 |
|
On<T1, T2, T3, T4>(HubMessage<T1, T2, T3, T4>, Func<T1, T2, T3, T4, Task>)
Registers a handler that is invoked when the server sends the message.
Declaration
public IDisposable On<T1, T2, T3, T4>(HubMessage<T1, T2, T3, T4> message, Func<T1, T2, T3, T4, Task> handler)
Parameters
| Type |
Name |
Description |
| HubMessage<T1, T2, T3, T4> |
message |
|
| Func<T1, T2, T3, T4, Task> |
handler |
|
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
| T4 |
|
On<TResult>(HubMethod<TResult>, Func<TResult>)
Registers a handler that is invoked when the server invokes the method, returning the result to the server.
Declaration
public IDisposable On<TResult>(HubMethod<TResult> method, Func<TResult> handler)
Parameters
| Type |
Name |
Description |
| HubMethod<TResult> |
method |
|
| Func<TResult> |
handler |
|
Returns
Type Parameters
On<TResult>(HubMethod<TResult>, Func<Task<TResult>>)
Registers a handler that is invoked when the server invokes the method, returning the result to the server.
Declaration
public IDisposable On<TResult>(HubMethod<TResult> method, Func<Task<TResult>> handler)
Parameters
Returns
Type Parameters
On<T1, TResult>(HubMethod<T1, TResult>, Func<T1, TResult>)
Registers a handler that is invoked when the server invokes the method, returning the result to the server.
Declaration
public IDisposable On<T1, TResult>(HubMethod<T1, TResult> method, Func<T1, TResult> handler)
Parameters
| Type |
Name |
Description |
| HubMethod<T1, TResult> |
method |
|
| Func<T1, TResult> |
handler |
|
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| TResult |
|
On<T1, TResult>(HubMethod<T1, TResult>, Func<T1, Task<TResult>>)
Registers a handler that is invoked when the server invokes the method, returning the result to the server.
Declaration
public IDisposable On<T1, TResult>(HubMethod<T1, TResult> method, Func<T1, Task<TResult>> handler)
Parameters
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| TResult |
|
On<T1, T2, TResult>(HubMethod<T1, T2, TResult>, Func<T1, T2, TResult>)
Registers a handler that is invoked when the server invokes the method, returning the result to the server.
Declaration
public IDisposable On<T1, T2, TResult>(HubMethod<T1, T2, TResult> method, Func<T1, T2, TResult> handler)
Parameters
| Type |
Name |
Description |
| HubMethod<T1, T2, TResult> |
method |
|
| Func<T1, T2, TResult> |
handler |
|
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| TResult |
|
On<T1, T2, TResult>(HubMethod<T1, T2, TResult>, Func<T1, T2, Task<TResult>>)
Registers a handler that is invoked when the server invokes the method, returning the result to the server.
Declaration
public IDisposable On<T1, T2, TResult>(HubMethod<T1, T2, TResult> method, Func<T1, T2, Task<TResult>> handler)
Parameters
| Type |
Name |
Description |
| HubMethod<T1, T2, TResult> |
method |
|
| Func<T1, T2, Task<TResult>> |
handler |
|
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| TResult |
|
On<T1, T2, T3, TResult>(HubMethod<T1, T2, T3, TResult>, Func<T1, T2, T3, TResult>)
Registers a handler that is invoked when the server invokes the method, returning the result to the server.
Declaration
public IDisposable On<T1, T2, T3, TResult>(HubMethod<T1, T2, T3, TResult> method, Func<T1, T2, T3, TResult> handler)
Parameters
| Type |
Name |
Description |
| HubMethod<T1, T2, T3, TResult> |
method |
|
| Func<T1, T2, T3, TResult> |
handler |
|
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
| TResult |
|
On<T1, T2, T3, TResult>(HubMethod<T1, T2, T3, TResult>, Func<T1, T2, T3, Task<TResult>>)
Registers a handler that is invoked when the server invokes the method, returning the result to the server.
Declaration
public IDisposable On<T1, T2, T3, TResult>(HubMethod<T1, T2, T3, TResult> method, Func<T1, T2, T3, Task<TResult>> handler)
Parameters
| Type |
Name |
Description |
| HubMethod<T1, T2, T3, TResult> |
method |
|
| Func<T1, T2, T3, Task<TResult>> |
handler |
|
Returns
Type Parameters
| Name |
Description |
| T1 |
|
| T2 |
|
| T3 |
|
| TResult |
|