C# Class Microsoft.AspNet.SignalR.ConnectionExtensions

Show file Open project: SignalR/SignalR

Public Methods

Method Description
Broadcast ( this connection, object value ) : System.Threading.Tasks.Task

Broadcasts a value to all connections, excluding the connection ids specified.

Send ( this connection, IList connectionIds, object value ) : System.Threading.Tasks.Task

Sends a message to all connections subscribed to the specified signal. An example of signal may be a specific connection id.

Send ( this connection, string connectionId, object value ) : System.Threading.Tasks.Task

Sends a message to all connections subscribed to the specified signal. An example of signal may be a specific connection id.

Method Details

Broadcast() public static method

Broadcasts a value to all connections, excluding the connection ids specified.
public static Broadcast ( this connection, object value ) : System.Threading.Tasks.Task
connection this The connection
value object The value to broadcast.
return System.Threading.Tasks.Task

Send() public static method

Sends a message to all connections subscribed to the specified signal. An example of signal may be a specific connection id.
public static Send ( this connection, IList connectionIds, object value ) : System.Threading.Tasks.Task
connection this The connection
connectionIds IList The connection ids to send to.
value object The value to publish.
return System.Threading.Tasks.Task

Send() public static method

Sends a message to all connections subscribed to the specified signal. An example of signal may be a specific connection id.
public static Send ( this connection, string connectionId, object value ) : System.Threading.Tasks.Task
connection this The connection
connectionId string The connectionId to send to.
value object The value to publish.
return System.Threading.Tasks.Task