HubLifetimeManager<THub> Class

Definition

A lifetime manager abstraction for Hub 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)

Type Parameters

THub
Inheritance
HubLifetimeManager<THub>
Derived

Constructors

HubLifetimeManager<THub>()

Methods

AddToGroupAsync(String, String, CancellationToken)

Adds a connection to the specified group.

OnConnectedAsync(HubConnectionContext)

Called when a connection is started.

OnDisconnectedAsync(HubConnectionContext)

Called when a connection is finished.

RemoveFromGroupAsync(String, String, CancellationToken)

Removes a connection from the specified group.

SendAllAsync(String, Object[], CancellationToken)

Sends an invocation message to all hub connections.

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

Sends an invocation message to all hub connections excluding the specified connections.

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

Sends an invocation message to the specified connection.

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

Sends an invocation message to the specified connections.

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

Sends an invocation message to the specified group.

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

Sends an invocation message to the specified group excluding the specified connections.

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

Sends an invocation message to the specified groups.

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

Sends an invocation message to the specified user.

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

Sends an invocation message to the specified users.

Applies to