Hub Class

.NET Framework 4.5

Provides methods that communicate with SignalR connections that connected to a Hub.

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.Hub

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

Syntax

'Declaration
Public MustInherit Class Hub _
    Implements IHub, IDisposable
'Usage
Dim instance As Hub
public abstract class Hub : IHub, 
    IDisposable
public ref class Hub abstract : IHub, 
    IDisposable
[<AbstractClassAttribute>]
type Hub =  
    class 
        interface IHub 
        interface IDisposable 
    end
public abstract class Hub implements IHub, IDisposable

The Hub type exposes the following members.

Constructors

  Name Description
Protected method Hub Initializes a new instance of the Hub class.

Top

Properties

  Name Description
Public property Clients Gets or sets the clients that communicates with SignalR connections.
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() Releases all resources used by this instance.
Protected method Dispose(Boolean) Releases all resources used by this instance.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method OnConnected Occurs when the connection connects to this hub instance.
Public method OnDisconnected Occurs when a connection disconnects from this hub instance.
Public method OnReconnected Occurs when the connection reconnects to this hub instance.
Public method ToString (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AspNet.SignalR Namespace