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); } }
public void SaveLogInOutEvent(LogInOutEvent logEvent) { this.Session.Save(logEvent); }
public void SaveLogInOutEvent(LogInOutEvent logEvent) { DaoFactory.LogEventsDao.SaveLogInOutEvent(logEvent); }