ConnectionExtensions Class

.NET Framework 4.5

Provides extension methods used to send message to all connections that subscribe to specific signal.

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.ConnectionExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ConnectionExtensions
'Usage
public static class ConnectionExtensions
[ExtensionAttribute]
public ref class ConnectionExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ConnectionExtensions =  class end
public final class ConnectionExtensions

The ConnectionExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member Broadcast Broadcasts a value to all connections, excluding the connection IDs specified.
Public methodStatic member Send(IConnection, IList<String>, Object) Sends a message to all connections subscribed to the specified signal. An example of signal may be a specific connection id.
Public methodStatic member Send(IConnection, String, Object) Sends a message to all connections subscribed to the specified signal. An example of signal may be a specific connection id.

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 Namespace