HubConnectionExtensions.On Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
On(HubConnection, String, Action) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On(HubConnection, String, Func<Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On(HubConnection, String, Type[], Func<Object[],Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4,T5,T6,T7,T8,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4,T5,T6,T7,T8,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,T8,Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4,T5,T6,T7,T8>(HubConnection, String, Action<T1,T2,T3,T4,T5,T6,T7,T8>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4,T5,T6,T7,T8>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,T8,Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4,T5,T6,T7,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4,T5,T6,T7,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,TResult>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4,T5,T6,T7>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4,T5,T6,T7>(HubConnection, String, Action<T1,T2,T3,T4,T5,T6,T7>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4,T5,T6,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,TResult>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4,T5,T6,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4,T5,T6>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4,T5,T6>(HubConnection, String, Action<T1,T2,T3,T4,T5,T6>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4,T5,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,TResult>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4,T5,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4,T5>(HubConnection, String, Func<T1,T2,T3,T4,T5,Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4,T5>(HubConnection, String, Action<T1,T2,T3,T4,T5>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4,TResult>(HubConnection, String, Func<T1,T2,T3,T4,Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4,TResult>(HubConnection, String, Func<T1,T2,T3,T4,TResult>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,T4>(HubConnection, String, Func<T1,T2,T3,T4,Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,T4>(HubConnection, String, Action<T1,T2,T3,T4>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3,TResult>(HubConnection, String, Func<T1,T2,T3,Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3,TResult>(HubConnection, String, Func<T1,T2,T3,TResult>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,T3>(HubConnection, String, Func<T1,T2,T3,Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,T3>(HubConnection, String, Action<T1,T2,T3>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2,TResult>(HubConnection, String, Func<T1,T2,TResult>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2,TResult>(HubConnection, String, Func<T1,T2,Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,T2>(HubConnection, String, Action<T1,T2>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,T2>(HubConnection, String, Func<T1,T2,Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1,TResult>(HubConnection, String, Func<T1,TResult>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1,TResult>(HubConnection, String, Func<T1,Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<T1>(HubConnection, String, Func<T1,Task>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<T1>(HubConnection, String, Action<T1>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. |
On<TResult>(HubConnection, String, Type[], Func<Object[],Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<TResult>(HubConnection, String, Func<TResult>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On<TResult>(HubConnection, String, Func<Task<TResult>>) |
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result. |
On(HubConnection, String, Action)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Action ^ handler);
public static IDisposable On (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Action handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Action -> IDisposable
<Extension()>
Public Function On (hubConnection As HubConnection, methodName As String, handler As Action) As IDisposable
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Action
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On(HubConnection, String, Func<Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Func<System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On (hubConnection As HubConnection, methodName As String, handler As Func(Of Task)) As IDisposable
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On(HubConnection, String, Type[], Func<Object[],Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, cli::array <Type ^> ^ parameterTypes, Func<cli::array <System::Object ^> ^, System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Type[] parameterTypes, Func<object[],System.Threading.Tasks.Task> handler);
public static IDisposable On (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Type[] parameterTypes, Func<object?[],System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Type[] * Func<obj[], System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On (hubConnection As HubConnection, methodName As String, parameterTypes As Type(), handler As Func(Of Object(), Task)) As IDisposable
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- parameterTypes
- Type[]
The parameters types expected by the hub method.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,T7,T8,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,T5,T6,T7,T8,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, 'Result> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, T7, T8, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, TResult)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- T7
The seventh argument type.
- T8
The eighth argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Func<T1,T2,T3,T4,T5,T6,T7,T8,TResult>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,T7,T8,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,T8,Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,T5,T6,T7,T8,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,T6,T7,T8,System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, T7, T8, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, Task(Of TResult))) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- T7
The seventh argument type.
- T8
The eighth argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,T7,T8>(HubConnection, String, Action<T1,T2,T3,T4,T5,T6,T7,T8>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Action<T1, T2, T3, T4, T5, T6, T7, T8> ^ handler);
public static IDisposable On<T1,T2,T3,T4,T5,T6,T7,T8> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Action<T1,T2,T3,T4,T5,T6,T7,T8> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, T7, T8) (hubConnection As HubConnection, methodName As String, handler As Action(Of T1, T2, T3, T4, T5, T6, T7, T8)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- T7
The seventh argument type.
- T8
The eighth argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Action<T1,T2,T3,T4,T5,T6,T7,T8>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,T7,T8>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,T8,Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Func<T1, T2, T3, T4, T5, T6, T7, T8, System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On<T1,T2,T3,T4,T5,T6,T7,T8> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,T6,T7,T8,System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'T8, System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, T7, T8) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, T6, T7, T8, Task)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- T7
The seventh argument type.
- T8
The eighth argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,T7,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,T5,T6,T7,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,T6,T7,System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, T7, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, T6, T7, Task(Of TResult))) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- T7
The seventh argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,T7,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,TResult>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,T5,T6,T7,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,T6,T7,TResult> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, 'Result> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, T7, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, T6, T7, TResult)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- T7
The seventh argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Func<T1,T2,T3,T4,T5,T6,T7,TResult>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,T7>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,T7,Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Func<T1, T2, T3, T4, T5, T6, T7, System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On<T1,T2,T3,T4,T5,T6,T7> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,T6,T7,System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7, System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, T7) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, T6, T7, Task)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- T7
The seventh argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,T7>(HubConnection, String, Action<T1,T2,T3,T4,T5,T6,T7>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Action<T1, T2, T3, T4, T5, T6, T7> ^ handler);
public static IDisposable On<T1,T2,T3,T4,T5,T6,T7> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Action<T1,T2,T3,T4,T5,T6,T7> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'T7> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, T7) (hubConnection As HubConnection, methodName As String, handler As Action(Of T1, T2, T3, T4, T5, T6, T7)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- T7
The seventh argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Action<T1,T2,T3,T4,T5,T6,T7>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,TResult>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,T5,T6,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,T6,TResult> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, 'Result> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, T6, TResult)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Func<T1,T2,T3,T4,T5,T6,TResult>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,T5,T6,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,T6,System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, T6, Task(Of TResult))) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6>(HubConnection, String, Func<T1,T2,T3,T4,T5,T6,Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Func<T1, T2, T3, T4, T5, T6, System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On<T1,T2,T3,T4,T5,T6> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,T6,System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'T6, System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, T6, Task)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,T6>(HubConnection, String, Action<T1,T2,T3,T4,T5,T6>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Action<T1, T2, T3, T4, T5, T6> ^ handler);
public static IDisposable On<T1,T2,T3,T4,T5,T6> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Action<T1,T2,T3,T4,T5,T6> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Action<'T1, 'T2, 'T3, 'T4, 'T5, 'T6> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, T6) (hubConnection As HubConnection, methodName As String, handler As Action(Of T1, T2, T3, T4, T5, T6)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- T6
The sixth argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Action<T1,T2,T3,T4,T5,T6>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,TResult>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,T5,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,TResult> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, 'Result> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, TResult)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Func<T1,T2,T3,T4,T5,TResult>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5,TResult>(HubConnection, String, Func<T1,T2,T3,T4,T5,Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,T5,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, Task(Of TResult))) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5>(HubConnection, String, Func<T1,T2,T3,T4,T5,Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Func<T1, T2, T3, T4, T5, System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On<T1,T2,T3,T4,T5> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,T5,System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'T5, System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, T5, Task)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,T5>(HubConnection, String, Action<T1,T2,T3,T4,T5>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Action<T1, T2, T3, T4, T5> ^ handler);
public static IDisposable On<T1,T2,T3,T4,T5> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Action<T1,T2,T3,T4,T5> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Action<'T1, 'T2, 'T3, 'T4, 'T5> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, T5) (hubConnection As HubConnection, methodName As String, handler As Action(Of T1, T2, T3, T4, T5)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- T5
The fifth argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Action<T1,T2,T3,T4,T5>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,TResult>(HubConnection, String, Func<T1,T2,T3,T4,Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, Task(Of TResult))) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4,TResult>(HubConnection, String, Func<T1,T2,T3,T4,TResult>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,T4,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,TResult> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, 'Result> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, TResult)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Func<T1,T2,T3,T4,TResult>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4>(HubConnection, String, Func<T1,T2,T3,T4,Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Func<T1, T2, T3, T4, System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On<T1,T2,T3,T4> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,T4,System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'T4, System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, T4, Task)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,T4>(HubConnection, String, Action<T1,T2,T3,T4>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3, typename T4>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Action<T1, T2, T3, T4> ^ handler);
public static IDisposable On<T1,T2,T3,T4> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Action<T1,T2,T3,T4> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Action<'T1, 'T2, 'T3, 'T4> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, T4) (hubConnection As HubConnection, methodName As String, handler As Action(Of T1, T2, T3, T4)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- T4
The fourth argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Action<T1,T2,T3,T4>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,TResult>(HubConnection, String, Func<T1,T2,T3,Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, Task(Of TResult))) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3,TResult>(HubConnection, String, Func<T1,T2,T3,TResult>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,T3,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,TResult> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, 'Result> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, TResult)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Func<T1,T2,T3,TResult>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3>(HubConnection, String, Func<T1,T2,T3,Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Func<T1, T2, T3, System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On<T1,T2,T3> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,T3,System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'T3, System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, T3, Task)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,T3>(HubConnection, String, Action<T1,T2,T3>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2, typename T3>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Action<T1, T2, T3> ^ handler);
public static IDisposable On<T1,T2,T3> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Action<T1,T2,T3> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Action<'T1, 'T2, 'T3> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, T3) (hubConnection As HubConnection, methodName As String, handler As Action(Of T1, T2, T3)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- T3
The third argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Action<T1,T2,T3>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,TResult>(HubConnection, String, Func<T1,T2,TResult>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,TResult> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, 'Result> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, TResult)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Func<T1,T2,TResult>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2,TResult>(HubConnection, String, Func<T1,T2,Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,T2,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of T1, T2, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, Task(Of TResult))) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2>(HubConnection, String, Action<T1,T2>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Action<T1, T2> ^ handler);
public static IDisposable On<T1,T2> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Action<T1,T2> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Action<'T1, 'T2> -> IDisposable
<Extension()>
Public Function On(Of T1, T2) (hubConnection As HubConnection, methodName As String, handler As Action(Of T1, T2)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Action<T1,T2>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,T2>(HubConnection, String, Func<T1,T2,Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1, typename T2>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Func<T1, T2, System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On<T1,T2> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,T2,System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'T2, System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On(Of T1, T2) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, T2, Task)) As IDisposable
Type Parameters
- T1
The first argument type.
- T2
The second argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,TResult>(HubConnection, String, Func<T1,TResult>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,TResult> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, 'Result> -> IDisposable
<Extension()>
Public Function On(Of T1, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, TResult)) As IDisposable
Type Parameters
- T1
The first argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Func<T1,TResult>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1,TResult>(HubConnection, String, Func<T1,Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<T1,TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of T1, TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, Task(Of TResult))) As IDisposable
Type Parameters
- T1
The first argument type.
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1>(HubConnection, String, Func<T1,Task>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Func<T1, System::Threading::Tasks::Task ^> ^ handler);
public static IDisposable On<T1> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<T1,System.Threading.Tasks.Task> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'T1, System.Threading.Tasks.Task> -> IDisposable
<Extension()>
Public Function On(Of T1) (hubConnection As HubConnection, methodName As String, handler As Func(Of T1, Task)) As IDisposable
Type Parameters
- T1
The first argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<T1>(HubConnection, String, Action<T1>)
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
- Source:
- HubConnectionExtensions.cs
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
public:
generic <typename T1>
[System::Runtime::CompilerServices::Extension]
static IDisposable ^ On(Microsoft::AspNetCore::SignalR::Client::HubConnection ^ hubConnection, System::String ^ methodName, Action<T1> ^ handler);
public static IDisposable On<T1> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Action<T1> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Action<'T1> -> IDisposable
<Extension()>
Public Function On(Of T1) (hubConnection As HubConnection, methodName As String, handler As Action(Of T1)) As IDisposable
Type Parameters
- T1
The first argument type.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Action<T1>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<TResult>(HubConnection, String, Type[], Func<Object[],Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Type[] parameterTypes, Func<object?[],System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Type[] * Func<obj[], System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of TResult) (hubConnection As HubConnection, methodName As String, parameterTypes As Type(), handler As Func(Of Object(), Task(Of TResult))) As IDisposable
Type Parameters
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- parameterTypes
- Type[]
The parameters types expected by the hub method.
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<TResult>(HubConnection, String, Func<TResult>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<TResult> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<'Result> -> IDisposable
<Extension()>
Public Function On(Of TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of TResult)) As IDisposable
Type Parameters
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
- handler
- Func<TResult>
The handler that will be raised when the hub method is invoked.
Returns
A subscription that can be disposed to unsubscribe from the hub method.
Applies to
On<TResult>(HubConnection, String, Func<Task<TResult>>)
Registers a handler that will be invoked when the hub method with the specified method name is invoked. Returns value returned by handler to server if the server requests a result.
public static IDisposable On<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, Func<System.Threading.Tasks.Task<TResult>> handler);
static member On : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * Func<System.Threading.Tasks.Task<'Result>> -> IDisposable
<Extension()>
Public Function On(Of TResult) (hubConnection As HubConnection, methodName As String, handler As Func(Of Task(Of TResult))) As IDisposable
Type Parameters
- TResult
The return type the handler returns.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the hub method to define.
Returns
A subscription that can be disposed to unsubscribe from the hub method.