Skip to content

Instantly share code, notes, and snippets.

@diegobersano
Created April 26, 2016 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegobersano/b35178276f4fac2477c422c8fe98c90e to your computer and use it in GitHub Desktop.
Save diegobersano/b35178276f4fac2477c422c8fe98c90e to your computer and use it in GitHub Desktop.
namespace NotificationApp.Hubs
{
using Microsoft.AspNet.SignalR;
/// <summary>
/// Hub de notificaciones de la aplicación.
/// </summary>
public class NotificationHub : Hub
{
/// <summary>
/// Acción de notificación de una tarea completa.
/// </summary>
/// <param name="taskId">Identificador de la tarea.</param>
/// <param name="taskResult">Resultado de la tarea.</param>
public void Notificate(int taskId, bool taskResult)
{
Clients.Others.markDone(taskId, taskResult);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment