Share via


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.

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

Sends an invocation message to the specified connection and waits for a response.

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.

SetConnectionResultAsync(String, CompletionMessage)

Sets the connection result for an in progress InvokeConnectionAsync<T>(String, String, Object[], CancellationToken) call.

TryGetReturnType(String, Type)

Tells IHubProtocol implementations what the expected type from a connection result is.

Applies to