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