예제 #1
0
        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);
            }
        }
예제 #2
0
        public async Task LogOut()
        {
            await WebSocketsClient.Disconnect();

            Caches.ClearCachesForLogout();
        }