Пример #1
0
        public void Join(int showId, int cuebookId)
        {
            var cueBook = cuebookHandler.GetCueBook(cuebookId);

            Groups.Add(Context.ConnectionId, GetShowGroupName(showId));
            Groups.Add(Context.ConnectionId, GetCrewGroupName(showId, cuebookId));
            ShowHub.showDictionary.Add(Context.ConnectionId, new CrewState()
            {
                ShowId = showId, CueBookName = cueBook.Name, IsStageManager = false
            });

            Clients.Group(GetStageManagerGroupName(showId)).crewJoined(new CrewMember(Context.ConnectionId, cueBook.Name));

            foreach (var cs in ShowHub.GetPreviousCues(showId, cuebookId, this))
            {
                Clients.Caller.runCue(cs);
            }
        }
Пример #2
0
 public ActionResult Run(int id)
 {
     return(View(cueBookHandler.GetCueBook(id)));
 }