Delen via


Hub<T> Class

Definition

A base class for a strongly typed SignalR hub.

generic <typename T>
 where T : classpublic ref class Hub abstract : Microsoft::AspNetCore::SignalR::Hub
public abstract class Hub<T> : Microsoft.AspNetCore.SignalR.Hub where T : class
type Hub<'T (requires 'T : null)> = class
    inherit Hub
Public MustInherit Class Hub(Of T)
Inherits Hub

Type Parameters

T

The type of client.

Inheritance
Hub<T>

Constructors

Hub<T>()

Properties

Clients

Gets or sets a T that can be used to invoke methods on the clients connected to this hub.

Context

Gets or sets the hub caller context.

(Inherited from Hub)
Groups

Gets or sets the group manager.

(Inherited from Hub)

Methods

Dispose() (Inherited from Hub)
Dispose(Boolean)

Releases all resources currently used by this Hub instance.

(Inherited from Hub)
OnConnectedAsync()

Called when a new connection is established with the hub.

(Inherited from Hub)
OnDisconnectedAsync(Exception)

Called when a connection with the hub is terminated.

(Inherited from Hub)

Applies to