Compartir a través de


HubConnectionExtensions.InvokeAsync Método

Definición

Sobrecargas

InvokeAsync(HubConnection, String, CancellationToken)

Invoca un método de concentrador en el servidor con el nombre de método especificado.

InvokeAsync(HubConnection, String, Object, CancellationToken)

Invoca un método de concentrador en el servidor mediante el nombre de método y el argumento especificados.

InvokeAsync(HubConnection, String, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync(HubConnection, String, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync(HubConnection, String, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync<TResult>(HubConnection, String, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync<TResult>(HubConnection, String, Object, CancellationToken)

Invoca un método de concentrador en el servidor mediante el nombre de método y el argumento especificados.

InvokeAsync<TResult>(HubConnection, String, CancellationToken)

Invoca un método de concentrador en el servidor con el nombre de método especificado.

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, CancellationToken)

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

InvokeAsync(HubConnection, String, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método de concentrador en el servidor con el nombre de método especificado.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task<TResult> representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método de concentrador en el servidor mediante el nombre de método y el argumento especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

arg7
Object

Séptimo argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

arg7
Object

Séptimo argumento.

arg8
Object

Octavo argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

arg7
Object

Séptimo argumento.

arg8
Object

Octavo argumento.

arg9
Object

Noveno argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs
Source:
HubConnectionExtensions.InvokeAsync.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

arg7
Object

Séptimo argumento.

arg8
Object

Octavo argumento.

arg9
Object

Noveno argumento.

arg10
Object

Décimo argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

que Task representa la invocación asincrónica.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

arg7
Object

Séptimo argumento.

arg8
Object

Octavo argumento.

arg9
Object

Noveno argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre de método y los argumentos especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

arg7
Object

Séptimo argumento.

arg8
Object

Octavo argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre y los argumentos del método especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

arg7
Object

Séptimo argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre y los argumentos del método especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre y los argumentos del método especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre y los argumentos del método especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

arg5
Object

Quinto argumento.

arg6
Object

Sexto argumento.

arg7
Object

Séptimo argumento.

arg8
Object

Octavo argumento.

arg9
Object

El noveno argumento.

arg10
Object

Décimo argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre y los argumentos del método especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre y los argumentos del método especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre y el argumento del método especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor con el nombre de método especificado.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a

InvokeAsync<TResult>(HubConnection, String, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs
Source:
HubConnectionExtensions.InvokeAsyncGeneric.cs

Invoca un método concentrador en el servidor mediante el nombre y los argumentos del método especificados.

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)

Parámetros de tipo

TResult

Tipo de valor devuelto del método de servidor.

Parámetros

hubConnection
HubConnection

Conexión con el concentrador.

methodName
String

Nombre del método de servidor que se va a invocar.

arg1
Object

Primer argumento.

arg2
Object

Segundo argumento.

arg3
Object

Tercer argumento.

arg4
Object

Cuarto argumento.

cancellationToken
CancellationToken

Token para supervisar solicitudes de cancelación. El valor predeterminado es None.

Devoluciones

Task<TResult>

que Task<TResult> representa la invocación asincrónica. La Result propiedad devuelve un TResult para el valor devuelto del método hub.

Se aplica a