Beispiel #1
0
        public override Task OnReconnected()
        {
            DirectMessageService _DirectMessageService = new DirectMessageService();

            _DirectMessageService.DeleteUserConnectionIds(savedConnectionId);
            _DirectMessageService.StoreUserConnectionIds(savedUserId, Context.ConnectionId);
            return(base.OnReconnected());
        }
Beispiel #2
0
        public async Task saveFunction(string id)
        {
            DirectMessageService _DirectMessageService = new DirectMessageService();

            _DirectMessageService.StoreUserConnectionIds(id, Context.ConnectionId);
        }