/// <summary> /// Handle session event by logging status /// </summary> /// <param name="session"></param> /// <param name="reason"></param> private void OnEvent(Session session, SessionEventReason reason) { _lastEventTime = DateTime.UtcNow; LogSessionStatus(session, reason.ToString()); }
/// <summary> /// Handler for server status changes. /// </summary> private static void ServerEventStatus(Session session, SessionEventReason reason) { PrintSessionStatus(session, reason.ToString()); }
private void EventStatus(Session session, SessionEventReason reason) { lastEventTime = DateTime.UtcNow; PrintSessionStatus(session, reason.ToString()); }
/// <summary> /// Handler for server status changes. /// </summary> private static void ServerEventStatus(Session session, SessionEventReason reason) { _lastServerSessionEventTime = DateTime.UtcNow; PrintSessionStatus(session, reason.ToString()); }
/// <summary> /// Logs the session event. /// </summary> private void SessionManager_SessionEvent(Session session, SessionEventReason reason) { dsLog.WriteAction("{0} {1}", session.SessionDiagnostics.SessionName, reason.ToString().ToLowerInvariant()); }