예제 #1
0
        public async Task SendCurrentStoryChangedMessageAsync(string sessionId, string hostCode, string storyId)
        {
            if (!await _sessionProvider.CheckSessionForHostAsync(sessionId, hostCode, default))
            {
                return;
            }

            await _sessionProvider.ChangeCurrentStoryAsync(sessionId, hostCode, storyId, default);

            await Clients.Group(sessionId).SendAsync("CurrentStoryChanged", storyId);
        }