示例#1
0
 public sFreeSwitchStatus(long totalSessions, long currentSessions, long sessionsPerSecond, sFreeSwitchUpTime uptime)
 {
     _totalSessions     = totalSessions;
     _currentSessions   = currentSessions;
     _sessionsPerSecond = sessionsPerSecond;
     _uptime            = uptime;
 }
 internal void UpdateFreeswitchMetrics(sFreeSwitchUpTime uptime, long sessionCount, long sessionsPerSecond,long sessionsSinceStart)
 {
     try
     {
         _curStatus = new sFreeSwitchStatus(sessionsSinceStart, sessionCount, sessionsPerSecond, uptime);
     }
     catch (Exception e)
     {
         Log.Error(e);
     }
 }
 internal void UpdateFreeswitchMetrics(sFreeSwitchUpTime uptime, long sessionCount, long sessionsPerSecond, long sessionsSinceStart)
 {
     try
     {
         _curStatus = new sFreeSwitchStatus(sessionsSinceStart, sessionCount, sessionsPerSecond, uptime);
     }
     catch (Exception e)
     {
         Log.Error(e);
     }
 }
 public sFreeSwitchStatus(long totalSessions, long currentSessions, long sessionsPerSecond, sFreeSwitchUpTime uptime)
 {
     _totalSessions = totalSessions;
     _currentSessions = currentSessions;
     _sessionsPerSecond = sessionsPerSecond;
     _uptime = uptime;
 }