RedisHubLifetimeManager<THub> Classe

Définition

Fournisseur de scaleout Redis pour la prise en charge multiserveur.

generic <typename THub>
 where THub : Hubpublic ref class RedisHubLifetimeManager : Microsoft::AspNetCore::SignalR::HubLifetimeManager<THub>, IDisposable
public class RedisHubLifetimeManager<THub> : Microsoft.AspNetCore.SignalR.HubLifetimeManager<THub>, IDisposable where THub : Hub
type RedisHubLifetimeManager<'Hub (requires 'Hub :> Hub)> = class
    inherit HubLifetimeManager<'Hub (requires 'Hub :> Hub)>
    interface IDisposable
Public Class RedisHubLifetimeManager(Of THub)
Inherits HubLifetimeManager(Of THub)
Implements IDisposable

Paramètres de type

THub

Type de Hub pour lequel gérer les connexions.

Héritage
RedisHubLifetimeManager<THub>
Implémente

Constructeurs

RedisHubLifetimeManager<THub>(ILogger<RedisHubLifetimeManager<THub>>, IOptions<RedisOptions>, IHubProtocolResolver)

Construit avec des RedisHubLifetimeManager<THub> types à partir de l’injection de dépendances.

RedisHubLifetimeManager<THub>(ILogger<RedisHubLifetimeManager<THub>>, IOptions<RedisOptions>, IHubProtocolResolver, IOptions<HubOptions>, IOptions<HubOptions<THub>>)

Construit avec des RedisHubLifetimeManager<THub> types à partir de l’injection de dépendances.

Méthodes

AddToGroupAsync(String, String, CancellationToken)

Ajoute une connexion au groupe spécifié.

Dispose()

Nettoie la connexion Redis.

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

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

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

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

(Hérité de HubLifetimeManager<THub>)
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) .

SetConnectionResultAsync(String, CompletionMessage)

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

(Hérité de HubLifetimeManager<THub>)
TryGetReturnType(String, Type)

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

TryGetReturnType(String, Type)

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

(Hérité de HubLifetimeManager<THub>)

S’applique à