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

            await _sessionProvider.StartSessionAsync(sessionId, hostCode, default);

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