Share via


Hub Class

Definition

A base class for a SignalR hub.

public ref class Hub abstract : IDisposable
public abstract class Hub : IDisposable
type Hub = class
    interface IDisposable
Public MustInherit Class Hub
Implements IDisposable
Inheritance
Hub
Derived
Implements

Constructors

Hub()

Properties

Clients

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

Context

Gets or sets the hub caller context.

Groups

Gets or sets the group manager.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Dispose(Boolean)

Releases all resources currently used by this Hub instance.

OnConnectedAsync()

Called when a new connection is established with the hub.

OnDisconnectedAsync(Exception)

Called when a connection with the hub is terminated.

Applies to