HubConnectionContext Class

.NET Framework 4.5

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

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.Hubs.HubConnectionContextBase
    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 _
    Inherits HubConnectionContextBase _
    Implements IHubCallerConnectionContext, IHubConnectionContext
'Usage
Dim instance As HubConnectionContext
public class HubConnectionContext : HubConnectionContextBase, 
    IHubCallerConnectionContext, IHubConnectionContext
public ref class HubConnectionContext : public HubConnectionContextBase, 
    IHubCallerConnectionContext, IHubConnectionContext
type HubConnectionContext =  
    class 
        inherit HubConnectionContextBase 
        interface IHubCallerConnectionContext 
        interface IHubConnectionContext 
    end
public class HubConnectionContext extends HubConnectionContextBase implements IHubCallerConnectionContext, IHubConnectionContext

The HubConnectionContext type exposes the following members.

Constructors

  Name Description
Public method HubConnectionContext() Initializes a new instance of the HubConnectionContext class.
Public method HubConnectionContext(IHubPipelineInvoker, IConnection, String, String, StateChangeTracker) Initializes a new instance of the HubConnectionContext class.

Top

Properties

  Name Description
Public property All (Inherited from HubConnectionContextBase.)
Public property Caller Gets or sets the calling client.
Protected property Connection (Inherited from HubConnectionContextBase.)
Protected property HubName (Inherited from HubConnectionContextBase.)
Protected property Invoker (Inherited from HubConnectionContextBase.)
Public property Others Gets or sets all the 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. (Inherited from HubConnectionContextBase.)
Public method Client Returns a dynamic representation of the connection with the specified connectionid. (Inherited from HubConnectionContextBase.)
Public method Clients Returns a dynamic representation of the connections with the specified connectionids. (Inherited from HubConnectionContextBase.)
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. (Inherited from HubConnectionContextBase.)
Public method Groups Returns a dynamic representation of the specified groups. (Inherited from HubConnectionContextBase.)
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 OthersInGroups Returns a dynamic representation of all clients in the specified groups except the calling client.
Public method ToString (Inherited from Object.)
Public method User (Inherited from HubConnectionContextBase.)

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