Exemplo n.º 1
0
 /// <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());
 }
Exemplo n.º 2
0
 /// <summary>
 /// Handler for server status changes.
 /// </summary>
 private static void ServerEventStatus(Session session, SessionEventReason reason)
 {
     PrintSessionStatus(session, reason.ToString());
 }
Exemplo n.º 3
0
 private void EventStatus(Session session, SessionEventReason reason)
 {
     lastEventTime = DateTime.UtcNow;
     PrintSessionStatus(session, reason.ToString());
 }
Exemplo n.º 4
0
        /// <summary>
        /// Handler for server status changes.
        /// </summary>

        private static void ServerEventStatus(Session session, SessionEventReason reason)
        {
            _lastServerSessionEventTime = DateTime.UtcNow;
            PrintSessionStatus(session, reason.ToString());
        }
Exemplo n.º 5
0
 /// <summary>
 /// Logs the session event.
 /// </summary>
 private void SessionManager_SessionEvent(Session session, SessionEventReason reason)
 {
     dsLog.WriteAction("{0} {1}", session.SessionDiagnostics.SessionName, reason.ToString().ToLowerInvariant());
 }
 private void EventStatus(Session session, SessionEventReason reason)
 {
     lastEventTime = DateTime.UtcNow;
     PrintSessionStatus(session, reason.ToString());
 }