Microsoft.AspNet.SignalR.ConnectionExtensions.Broadcast C# (CSharp) Метод

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
        public static Task Broadcast(this IConnection connection, object value, params string[] excludeConnectionIds)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }

            var message = new ConnectionMessage(connection.DefaultSignal,
                                                value,
                                                PrefixHelper.GetPrefixedConnectionIds(excludeConnectionIds));

            return connection.Send(message);
        }
    }
ConnectionExtensions