Partager via


HubConnectionExtensions.SendAsync Méthode

Définition

Surcharges

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, Object, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et de l’argument spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode spécifié. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, Object, Object, Object, CancellationToken)

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (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 SendAsync (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 SendAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendAsync (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

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

arg2
Object

Le deuxième argument.

arg3
Object

Troisième argument.

arg4
Object

Quatrième argument.

arg5
Object

Cinquième argument.

arg6
Object

Sixième argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (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 SendAsync (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 SendAsync : 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 SendAsync (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

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

arg2
Object

Le deuxième argument.

arg3
Object

Troisième argument.

arg4
Object

Quatrième argument.

arg5
Object

Cinquième argument.

arg6
Object

Sixième argument.

arg7
Object

Septième argument.

arg8
Object

Huitième argument.

arg9
Object

Neuvième argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas de réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (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 SendAsync (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 SendAsync : 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 SendAsync (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

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

arg2
Object

Le deuxième argument.

arg3
Object

Troisième argument.

arg4
Object

Quatrième argument.

arg5
Object

Cinquième argument.

arg6
Object

Sixième argument.

arg7
Object

Septième argument.

arg8
Object

Huitième argument.

arg9
Object

Neuvième argument.

arg10
Object

Dixième argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas une réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (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 SendAsync (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 SendAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendAsync (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

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

arg2
Object

Le deuxième argument.

arg3
Object

Troisième argument.

arg4
Object

Quatrième argument.

arg5
Object

Cinquième argument.

arg6
Object

Sixième argument.

arg7
Object

Septième argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas une réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (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 SendAsync (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 SendAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendAsync (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

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

arg2
Object

Le deuxième argument.

arg3
Object

Troisième argument.

arg4
Object

Quatrième argument.

arg5
Object

Cinquième argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, Object, Object, Object, Object, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas une réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (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 SendAsync (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 SendAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendAsync (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

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

arg2
Object

Le deuxième argument.

arg3
Object

Troisième argument.

arg4
Object

Quatrième argument.

arg5
Object

Cinquième argument.

arg6
Object

Sixième argument.

arg7
Object

Septième argument.

arg8
Object

Huitième argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas une réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (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 SendAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, System.Threading.CancellationToken cancellationToken = default);
static member SendAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, arg3 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

arg2
Object

Le deuxième argument.

arg3
Object

Troisième argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas une réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, object arg2, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task SendAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, System.Threading.CancellationToken cancellationToken = default);
static member SendAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, arg2 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

arg2
Object

Le deuxième argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom et de l’argument de méthode spécifiés. N’attend pas une réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object arg1, System.Threading.CancellationToken cancellationToken = default);
public static System.Threading.Tasks.Task SendAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, System.Threading.CancellationToken cancellationToken = default);
static member SendAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendAsync (hubConnection As HubConnection, methodName As String, arg1 As Object, Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode spécifié. N’attend pas une réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, System.Threading.CancellationToken cancellationToken = default);
static member SendAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendAsync (hubConnection As HubConnection, methodName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à

SendAsync(HubConnection, String, Object, Object, Object, Object, CancellationToken)

Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs
Source:
HubConnectionExtensions.SendAsync.cs

Appelle une méthode hub sur le serveur à l’aide du nom de méthode et des arguments spécifiés. N’attend pas une réponse du récepteur.

public static System.Threading.Tasks.Task SendAsync (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 SendAsync (this Microsoft.AspNetCore.SignalR.Client.HubConnection hubConnection, string methodName, object? arg1, object? arg2, object? arg3, object? arg4, System.Threading.CancellationToken cancellationToken = default);
static member SendAsync : Microsoft.AspNetCore.SignalR.Client.HubConnection * string * obj * obj * obj * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendAsync (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

Paramètres

hubConnection
HubConnection

Connexion via un concentrateur.

methodName
String

Nom de la méthode de serveur à appeler.

arg1
Object

Le premier argument.

arg2
Object

Le deuxième argument.

arg3
Object

Troisième argument.

arg4
Object

Quatrième argument.

cancellationToken
CancellationToken

Jeton pour surveiller les requêtes d'annulation. La valeur par défaut est None.

Retours

Task<TResult> qui représente l’appel asynchrone.

S’applique à