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

'Declaration
Public Interface IHub _
    Inherits IDisposable
'Usage
Dim instance As IHub
public interface IHub : IDisposable
public interface class IHub : IDisposable
type IHub =  
    interface 
        interface IDisposable 
    end
public interface IHub extends 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