Connection Class

.NET Framework 4

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.Infrastructure.Connection

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

Syntax

'Declaration
Public Class Connection _
    Implements IConnection, ITransportConnection, ISubscriber
'Usage
Dim instance As Connection
public class Connection : IConnection, ITransportConnection, 
    ISubscriber
public ref class Connection : IConnection, 
    ITransportConnection, ISubscriber
type Connection =  
    class 
        interface IConnection 
        interface ITransportConnection 
        interface ISubscriber 
    end
public class Connection implements IConnection, ITransportConnection, ISubscriber

The Connection type exposes the following members.

Constructors

  Name Description
Public method Connection

Top

Properties

  Name Description
Public property DefaultSignal
Public property GetCursor
Public property Identity

Top

Methods

  Name Description
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 Receive(String, Func<PersistentResponse, Task<Boolean>>, Int32)
Public method Receive(String, CancellationToken, Int32)
Public method Send
Public method ToString (Inherited from Object.)

Top

Events

  Name Description
Public event EventKeyAdded
Public event EventKeyRemoved

Top

Extension Methods

  Name Description
Public Extension Method Broadcast Broadcasts a value to all connections, excluding the connection ids specified. (Defined by ConnectionExtensions.)
Public Extension Method Send Sends a message to all connections subscribed to the specified signal. An example of signal may be a specific connection id, or fully qualified group name (Use IGroupManager to manipulate groups). (Defined by ConnectionExtensions.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property ISubscriber.EventKeys

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.Infrastructure Namespace