Udostępnij za pośrednictwem


ConnectionExtensions Class

.NET Framework 4

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 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).

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