public static Send ( this connection, IList |
||
connection | this | The connection |
connectionIds | IList |
The connection ids to send to. |
value | object | The value to publish. |
Résultat | System.Threading.Tasks.Task |
public static Task Send(this IConnection connection, IList<string> connectionIds, object value)
{
if (connection == null)
{
throw new ArgumentNullException("connection");
}
if (connectionIds == null)
{
throw new ArgumentNullException("connectionIds");
}
var message = new ConnectionMessage(connectionIds.Select(c => PrefixHelper.GetConnectionId(c)).ToList(),
value);
return connection.Send(message);
}
ConnectionExtensions::Send ( this connection, string connectionId, object value ) : System.Threading.Tasks.Task |