HubConnectionExtensions.InvokeAsync 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
InvokeAsync(HubConnection, String, CancellationToken)
Invokes a hub method on the server using the specified method name.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and argument.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- arg7
- Object
The seventh argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, arg8 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- arg7
- Object
The seventh argument.
- arg8
- Object
The eighth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, arg8 As Object, arg9 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- arg7
- Object
The seventh argument.
- arg8
- Object
The eighth argument.
- arg9
- Object
The ninth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task InvokeAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, object? arg10, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function InvokeAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, arg8 As Object, arg9 As Object, arg10 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- arg7
- Object
The seventh argument.
- arg8
- Object
The eighth argument.
- arg9
- Object
The ninth argument.
- arg10
- Object
The tenth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task that represents the asynchronous invoke.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, arg8 As Object, arg9 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- arg7
- Object
The seventh argument.
- arg8
- Object
The eighth argument.
- arg9
- Object
The ninth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, arg8 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- arg7
- Object
The seventh argument.
- arg8
- Object
The eighth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- arg7
- Object
The seventh argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6, object arg7, object arg8, object arg9, object arg10, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, object? arg5, object? arg6, object? arg7, object? arg8, object? arg9, object? arg10, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, arg5 As Object, arg6 As Object, arg7 As Object, arg8 As Object, arg9 As Object, arg10 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- arg5
- Object
The fifth argument.
- arg6
- Object
The sixth argument.
- arg7
- Object
The seventh argument.
- arg8
- Object
The eighth argument.
- arg9
- Object
The ninth argument.
- arg10
- Object
The tenth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and argument.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, CancellationToken)
Invokes a hub method on the server using the specified method name.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.
Applies to
InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, CancellationToken)
Invokes a hub method on the server using the specified method name and arguments.
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, object arg3, object arg4, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task<TResult> InvokeAsync<TResult> (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, System.Threading.CancellationToken cancellationToken = default);
static member InvokeAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
<Extension()>
Public Function InvokeAsync(Of TResult) (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, arg4 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TResult)
Type Parameters
- TResult
The return type of the server method.
Parameters
- hubConnection
- HubConnection
The hub connection.
- methodName
- String
The name of the server method to invoke.
- arg1
- Object
The first argument.
- arg2
- Object
The second argument.
- arg3
- Object
The third argument.
- arg4
- Object
The fourth argument.
- cancellationToken
- CancellationToken
The token to monitor for cancellation requests. The default value is None.
Returns
A Task<TResult> that represents the asynchronous invoke.
The Result property returns a TResult
for the hub method return value.