Share via


Hub Class

.NET Framework 4

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

Top

Properties

  Name Description
Public property Clients
Public property Context Provides information about the calling client.
Public property Groups The group manager for this hub instance.

Top

Methods

  Name Description
Public method Dispose()
Protected method Dispose(Boolean)
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 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.
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