Ejemplo n.º 1
0
 public void Handle(IRecalculatedAProjectBudget message)
 {
     GlobalHost.ConnectionManager.GetHubContext <PricingHub>()
     .Clients
     //.All
     .Group(GroupNames.Project(message.ProjectId))
     .projectBudgetRecalculated(message);
 }
Ejemplo n.º 2
0
 public void Handle(IAddedAProductToAProject message)
 {
     GlobalHost.ConnectionManager.GetHubContext <ProjectHub>()
     .Clients
     //.All
     .Group(GroupNames.Project(message.ProjectId))
     .productAddedToProject(message);
 }
Ejemplo n.º 3
0
 public Task SubscribeToProject(int projectId)
 {
     return(Groups.Add(Context.ConnectionId, GroupNames.Project(projectId)));
 }