Пример #1
0
        public async Task JoinQuestionGroup(Guid questionId)
        {
            var connectionIds = Consts.AddConnectionIdToQuestionGroups(questionId, Context.ConnectionId);

            if (connectionIds.Count() <= 1)
            {
                await dependencyNotification.SubscribeQuestionAsync(questionId);
            }
            await Groups.AddToGroupAsync(Context.ConnectionId, questionId.ToString());
        }