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