private async Task LogoutInternal() { try { ConnectionManager.Deinitialize(); await ServiceContainer.UserService.LogOut(); Caches.ClearCachesForLogout(); #if DEBUG //User.Current.Password = password; #endif User.Current.Save(); MainThreadUtility.InvokeOnMain(() => { ProgressUtility.Dismiss(); this.LoadData(); LogUtility.Enabled = false; }); } catch (Exception e) { LogUtility.LogException(e); } }
public async Task LogOut() { await WebSocketsClient.Disconnect(); Caches.ClearCachesForLogout(); }