HubConnectionHandler<THub> Class

Definition

Handles incoming connections and implements the SignalR Hub Protocol.

generic <typename THub>
 where THub : Hubpublic ref class HubConnectionHandler : Microsoft::AspNetCore::Connections::ConnectionHandler
public class HubConnectionHandler<THub> : Microsoft.AspNetCore.Connections.ConnectionHandler where THub : Hub
type HubConnectionHandler<'Hub (requires 'Hub :> Hub)> = class
    inherit ConnectionHandler
Public Class HubConnectionHandler(Of THub)
Inherits ConnectionHandler

Type Parameters

THub
Inheritance
HubConnectionHandler<THub>

Constructors

HubConnectionHandler<THub>(HubLifetimeManager<THub>, IHubProtocolResolver, IOptions<HubOptions>, IOptions<HubOptions<THub>>, ILoggerFactory, IUserIdProvider, HubDispatcher<THub>)

Initializes a new instance of the HubConnectionHandler<THub> class.

HubConnectionHandler<THub>(HubLifetimeManager<THub>, IHubProtocolResolver, IOptions<HubOptions>, IOptions<HubOptions<THub>>, ILoggerFactory, IUserIdProvider, IServiceScopeFactory)

Initializes a new instance of the HubConnectionHandler<THub> class.

Methods

OnConnectedAsync(ConnectionContext)

Called when a new connection is accepted to the endpoint.

Applies to