C# Class Microsoft.AspNet.SignalR.ConnectionExtensions

Afficher le fichier Open project: SignalR/SignalR

Méthodes publiques

Méthode 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 méthode

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.
Résultat System.Threading.Tasks.Task

Send() public static méthode

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.
Résultat System.Threading.Tasks.Task

Send() public static méthode

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.
Résultat System.Threading.Tasks.Task