Ejemplo n.º 1
0
 public async Task Logout()
 {
     try
     {
         var id = User.Claims.First(c => c.Type == "Id").Value;
         chatHub.Disconnect(id);
         await userService.SetLastTimeOnline(id);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }