コード例 #1
0
 public sFreeSwitchStatus(long totalSessions, long currentSessions, long sessionsPerSecond, sFreeSwitchUpTime uptime)
 {
     _totalSessions     = totalSessions;
     _currentSessions   = currentSessions;
     _sessionsPerSecond = sessionsPerSecond;
     _uptime            = uptime;
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 public sFreeSwitchStatus(long totalSessions, long currentSessions, long sessionsPerSecond, sFreeSwitchUpTime uptime)
 {
     _totalSessions = totalSessions;
     _currentSessions = currentSessions;
     _sessionsPerSecond = sessionsPerSecond;
     _uptime = uptime;
 }