示例#1
0
        public async Task HandleAsync(LogInOutEvent message, CancellationToken cancellationToken)
        {
            if (message.IsLogin)
            {
                await ActivateItemAsync(IoC.Get <HomeViewModel>(), cancellationToken);
            }
            else
            {
                await CloseAllModules();

                _user.ResetUserModel();
                _apiHelper.LogOffUser();
                await ActivateItemAsync(IoC.Get <LoginViewModel>(), cancellationToken);
            }
        }
示例#2
0
 public void SaveLogInOutEvent(LogInOutEvent logEvent)
 {
     this.Session.Save(logEvent);
 }
示例#3
0
 public void SaveLogInOutEvent(LogInOutEvent logEvent)
 {
     DaoFactory.LogEventsDao.SaveLogInOutEvent(logEvent);
 }