HubLifetimeManager<THub> Classe

Définition

Abstraction du gestionnaire de durée de vie pour Hub les instances.

generic <typename THub>
 where THub : Hubpublic ref class HubLifetimeManager abstract
public abstract class HubLifetimeManager<THub> where THub : Hub
type HubLifetimeManager<'Hub (requires 'Hub :> Hub)> = class
Public MustInherit Class HubLifetimeManager(Of THub)

Paramètres de type

THub
Héritage
HubLifetimeManager<THub>
Dérivé

Constructeurs

HubLifetimeManager<THub>()

Abstraction du gestionnaire de durée de vie pour Hub les instances.

Méthodes

AddToGroupAsync(String, String, CancellationToken)

Ajoute une connexion au groupe spécifié.

InvokeConnectionAsync<T>(String, String, Object[], CancellationToken)

Envoie un message d’appel à la connexion spécifiée et attend une réponse.

OnConnectedAsync(HubConnectionContext)

Appelé lorsqu’une connexion est démarrée.

OnDisconnectedAsync(HubConnectionContext)

Appelé lorsqu’une connexion est terminée.

RemoveFromGroupAsync(String, String, CancellationToken)

Supprime une connexion du groupe spécifié.

SendAllAsync(String, Object[], CancellationToken)

Envoie un message d’appel à toutes les connexions hub.

SendAllExceptAsync(String, Object[], IReadOnlyList<String>, CancellationToken)

Envoie un message d’appel à toutes les connexions hub à l’exclusion des connexions spécifiées.

SendConnectionAsync(String, String, Object[], CancellationToken)

Envoie un message d’appel à la connexion spécifiée.

SendConnectionsAsync(IReadOnlyList<String>, String, Object[], CancellationToken)

Envoie un message d’appel aux connexions spécifiées.

SendGroupAsync(String, String, Object[], CancellationToken)

Envoie un message d’appel au groupe spécifié.

SendGroupExceptAsync(String, String, Object[], IReadOnlyList<String>, CancellationToken)

Envoie un message d’appel au groupe spécifié, à l’exclusion des connexions spécifiées.

SendGroupsAsync(IReadOnlyList<String>, String, Object[], CancellationToken)

Envoie un message d’appel aux groupes spécifiés.

SendUserAsync(String, String, Object[], CancellationToken)

Envoie un message d’appel à l’utilisateur spécifié.

SendUsersAsync(IReadOnlyList<String>, String, Object[], CancellationToken)

Envoie un message d’appel aux utilisateurs spécifiés.

SetConnectionResultAsync(String, CompletionMessage)

Définit le résultat de la connexion pour un appel en cours InvokeConnectionAsync<T>(String, String, Object[], CancellationToken) .

TryGetReturnType(String, Type)

Indique aux IHubProtocol implémentations quel est le type attendu d’un résultat de connexion.

S’applique à