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 | |
---|---|---|
HubConnectionContext() | Initializes a new instance of the HubConnectionContext class. | |
HubConnectionContext(IHubPipelineInvoker, IConnection, String, String, StateChangeTracker) | Initializes a new instance of the HubConnectionContext class. |
Top
Properties
Name | Description | |
---|---|---|
All | (Inherited from HubConnectionContextBase.) | |
Caller | Gets or sets the calling client. | |
Connection | (Inherited from HubConnectionContextBase.) | |
HubName | (Inherited from HubConnectionContextBase.) | |
Invoker | (Inherited from HubConnectionContextBase.) | |
Others | Gets or sets all the connected clients except the calling client. |
Top
Methods
Name | Description | |
---|---|---|
AllExcept | Returns a dynamic representation of all clients except the calling client ones specified. (Inherited from HubConnectionContextBase.) | |
Client | Returns a dynamic representation of the connection with the specified connectionid. (Inherited from HubConnectionContextBase.) | |
Clients | Returns a dynamic representation of the connections with the specified connectionids. (Inherited from HubConnectionContextBase.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Group | Returns a dynamic representation of the specified group. (Inherited from HubConnectionContextBase.) | |
Groups | Returns a dynamic representation of the specified groups. (Inherited from HubConnectionContextBase.) | |
MemberwiseClone | (Inherited from Object.) | |
OthersInGroup | Returns a dynamic representation of all clients in a group except the calling client. | |
OthersInGroups | Returns a dynamic representation of all clients in the specified groups except the calling client. | |
ToString | (Inherited from Object.) | |
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.