Exemple #1
0
        public async Task LogoutAsync()
        {
            if (null != _overmindSession)
            {
                Logger.Info("Logging out...");

                await _chatSession.LogoutAsync().ConfigureAwait(false);

                _chatSession = null;

                await _overmindSession.LogoutAsync().ConfigureAwait(false);

                _overmindSession = null;
            }

            await Launcher.Windows.MainWindow.ShowLoginPageAsync().ConfigureAwait(false);
        }
 protected async override Task OnHandleMessageAsync(Message message, NetworkSession session)
 {
     OvermindSession overmindSession = (OvermindSession)session;
     await overmindSession.LogoutAsync().ConfigureAwait(false);
 }