Share via


HubConnectionContext Class

.NET Framework 4

Encapsulates all information about an individual SignalR connection for an IHub .

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.Hubs.HubConnectionContext

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

Syntax

'Declaration
Public Class HubConnectionContext _
    Implements IHubConnectionContext
'Usage
Dim instance As HubConnectionContext
public class HubConnectionContext : IHubConnectionContext
public ref class HubConnectionContext : IHubConnectionContext
type HubConnectionContext =  
    class 
        interface IHubConnectionContext 
    end
public class HubConnectionContext implements IHubConnectionContext

The HubConnectionContext type exposes the following members.

Constructors

  Name Description
Public method HubConnectionContext()
Public method HubConnectionContext(IHubPipelineInvoker, IConnection, String, String, StateChangeTracker)

Top

Properties

  Name Description
Public property All All connected clients.
Public property Caller Represents the calling client.
Public property Others All connected clients except the calling client.

Top

Methods

  Name Description
Public method AllExcept Returns a dynamic representation of all clients except the calling client ones specified.
Public method Client Returns a dynamic representation of the connection with the specified connection ID.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Group Returns a dynamic representation of the specified group.
Protected method MemberwiseClone (Inherited from Object.)
Public method OthersInGroup Returns a dynamic representation of all clients in a group except the calling client.
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.Hubs Namespace