Partager via


IConnection Interface

.NET Framework 4

A communication channel for a PersistentConnection and its connections.

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

Syntax

'Declaration
Public Interface IConnection
'Usage
Dim instance As IConnection
public interface IConnection
public interface class IConnection
type IConnection =  interface end
public interface IConnection

The IConnection type exposes the following members.

Properties

  Name Description
Public property DefaultSignal The main signal for this connection. This is the main signalr for a PersistentConnection .

Top

Methods

  Name Description
Public method Send Sends a message to connections subscribed to the signal.

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

See Also

Reference

Microsoft.AspNet.SignalR Namespace