Exemplo n.º 1
0
 /// <summary>
 /// Sends a message to the SignalR Hub
 /// </summary>
 /// <param name="signalR">The instance of the ISignalR interface</param>
 /// <param name="url">The name of the url to the hub</param>
 /// <param name="method">The name of the method inside the hub to invoke</param>
 /// <param name="arg1">The 1st argument (Optional)</param>
 /// <returns>True if the message was sent asynchronously (no guarantee of delivery)</returns>
 public static async Task <bool> Send(ISignalR signalR, string url, string method, object arg1) => await signalR.Send(url, method, arg1);
Exemplo n.º 2
0
 /// <summary>
 /// Sends a message to the SignalR Hub
 /// </summary>
 /// <param name="signalR">The instance of the ISignalR interface</param>
 /// <param name="url">The name of the url to the hub</param>
 /// <param name="method">The name of the method inside the hub to invoke</param>
 /// <param name="arg1">The 1st argument (Optional)</param>
 /// <param name="arg2">The 2nd argument (Optional)</param>
 /// <param name="arg3">The 3rd argument (Optional)</param>
 /// <param name="arg4">The 4th argument (Optional)</param>
 /// <param name="arg5">The 5th argument (Optional)</param>
 /// <param name="arg6">The 6th argument (Optional)</param>
 /// <returns>True if the message was sent asynchronously (no guarantee of delivery)</returns>
 public static async Task <bool> Send(ISignalR signalR, string url, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6) => await signalR.Send(url, method, arg1, arg2, arg3, arg4, arg5, arg6);
Exemplo n.º 3
0
 /// <summary>
 /// Sends a message to the SignalR Hub
 /// </summary>
 /// <param name="signalR">The instance of the ISignalR interface</param>
 /// <param name="url">The name of the url to the hub</param>
 /// <param name="method">The name of the method inside the hub to invoke</param>
 /// <returns>True if the message was sent asynchronously (no guarantee of delivery)</returns>
 public static async Task <bool> Send(ISignalR signalR, string url, string method) => await signalR.Send(url, method);