Bagikan melalui


HubConnectionHandler<THub> Kelas

Definisi

Menangani koneksi masuk dan mengimplementasikan Protokol SignalR Hub.

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

Jenis parameter

THub
Warisan
HubConnectionHandler<THub>

Konstruktor

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

Menginisialisasi instans baru kelas HubConnectionHandler<THub>.

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

Menginisialisasi instans baru kelas HubConnectionHandler<THub>.

Metode

OnConnectedAsync(ConnectionContext)

Dipanggil ketika koneksi baru diterima ke titik akhir.

Berlaku untuk