Esempio n. 1
0
        public override async Task OnDisconnectedAsync(Exception exception)
        {
            var channelId = Context.User.FindFirst("ChannelId").Value;

            _hostConnectionRepository.RemoveConnection(channelId);
            await _userHubContext.SendHostDisconnected(channelId);
        }