C# Класс Microsoft.AspNet.SignalR.ConnectionExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Broadcast() публичный статический Метод

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.
Результат System.Threading.Tasks.Task

Send() публичный статический Метод

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.
Результат System.Threading.Tasks.Task

Send() публичный статический Метод

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.
Результат System.Threading.Tasks.Task