public void exitLevel(string sceneName) { UserLogoutEvent logOut = new UserLogoutEvent(); logOut.Send(); SceneManager.LoadScene(sceneName); }
public void Handle(UserLogoutEvent @event) { var notification = new TblNotifications { IsDisplayed = false, Login = _loginRepository.GetById(@event.UserId), Message = string.Format($"User logout: {@event.OccurredOn}.") }; _notificationRepository.Create(notification); }
// Run on exit of application. Logs the user out of the server and closes the websocket public void OnApplicationQuit() { UserLogoutEvent logout = new UserLogoutEvent(); logout.Send(); log("Closing!!"); if (w != null && w.connected) { w.Close(); } }
public void OnApplicationQuit() { UserLogoutEvent logout = new UserLogoutEvent(); logout.Send(); FlowEvent closeEvent = new FlowEvent(); closeEvent.command = -1; CommandProcessor.sendCommand(closeEvent); Debug.Log("Closing!!"); if (w != null && w.connected) { w.Close(); } }
public virtual Task Handle(UserLogoutEvent message) { return(Task.CompletedTask); }
/// <summary> /// The handle. /// </summary> /// <param name="event"> /// The event. /// </param> void IHandleEvent <UserLogoutEvent> .Handle([NotNull] UserLogoutEvent @event) { // Clearing user cache with permissions data and active users cache...)); this.DataCache.Remove(key: string.Format(format: Constants.Cache.ActiveUserLazyData, arg0: @event.UserId)); this.DataCache.Remove(key: Constants.Cache.UsersOnlineStatus); }