IHub Interface

.NET Framework 4.5

Provides an interface that represents the methods that communicate with SignalR connections that connected to a Hub.

Namespace:  Microsoft.AspNet.SignalR.Hubs
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

public interface IHub : IDisposable

The IHub type exposes the following members.

Properties

  Name Description
Public property Clients Gets or sets the clients being connected to the hub.
Public property Context Gets or sets the information about the calling client.
Public property Groups Gets or sets the group manager for this hub instance.

Top

Methods

  Name Description
Public method Dispose (Inherited from IDisposable.)
Public method OnConnected Called when the connection connects to this hub instance.
Public method OnDisconnected Called when a connection disconnects from this hub instance.
Public method OnReconnected Called when the connection reconnects to this hub instance.

Top

See Also

Reference

Microsoft.AspNet.SignalR.Hubs Namespace