private void ProcessSlideShowAction(SlideShowActionMsg message) { switch (message.Code) { case 0: _presentationService.NextSlide(); break; case 1: _presentationService.PreviousSlide(); break; } }
public static Task SendSlideShowCommand(this IHubContext <HostHub> hubContext, string hostConnectionId, SlideShowActionMsg slideShowActionMsg) { return(hubContext.Clients.Client(hostConnectionId) .SendAsync("SlideShowActionReceived", slideShowActionMsg)); }