Created
April 24, 2016 15:01
-
-
Save diegobersano/d434acb40cf94f65ecaf2d6644a691cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.All.markDone(taskId, taskResult); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment