Exemple #1
0
 public PeakClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton = new object();
     Name      = objectName;
     parent.OnOneSecondTick += OnTimerTick;
     _CurrentValue           = 0;
 }
Exemple #2
0
 public GenericStatisticsClass(HEALTH_STATISTICS parent, string objectName)
 {
     PerSecond      = new PerSecondCounterClass(parent, objectName + ".PerSecond");
     RunningAverage = new RunningAverageClass(parent, objectName + ".RunningAverage");
     Accumulator    = new AccumulatorClass(parent, objectName + ".Accumulator");
     Snapshot       = new SnapshotClass(parent, objectName + ".Snapshot");
     Peak           = new PeakClass(parent, objectName + ".Peak");
     StatString     = new StatStringClass(parent, objectName + ".StatString");
     boolean        = new booleanClass(parent, objectName + ".boolean");
     SnapshotDouble = new SnapshotDoubleClass(parent, objectName + ".SnapshotDouble");
 }
Exemple #3
0
        // ///////////////////////////////////////////////////////

        //    Constructor

        /// <summary>
        /// AppData Constructor
        /// </summary>
        public APPLICATION_DATA()
        {
            try
            {
                AppClosingNotifiers = new List <APP_CLOSING_ITEM>();
                ThisComputerName    = System.Net.Dns.GetHostEntry("LocalHost").HostName;
                RemoteServerLock    = new object();

                HealthStatistics = new HEALTH_STATISTICS(this);

                SerialNumberLock        = new object();
                globalFrameSerialNumber = 0;

                MoviePlayerParentPanel = new object[MAX_VIRTUAL_CHANNELS];

                LPRServiceControl = new LPR_SERVICE_CONTROL();
                LPRServiceControl.ConfigChangedServiceNeedsRestarting = false;
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception on APPLICATION_DATA Startup: ex : " + ex.Message);
            }
        }
Exemple #4
0
 public SnapshotDoubleClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton = new object();
     Name = objectName;
 }
Exemple #5
0
 public SnapshotClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton = new object();
     Name = objectName;
     parent.OnOneSecondTick += OnTimerTick;
 }
Exemple #6
0
 public PeakClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton = new object();
     Name = objectName;
     parent.OnOneSecondTick += OnTimerTick;
     _CurrentValue = 0;
 }
Exemple #7
0
 public booleanClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton = new object();
     Name = objectName;
     _CurrentValue = false;
 }
Exemple #8
0
 public GenericStatisticsClass(HEALTH_STATISTICS parent, string objectName)
 {
     PerSecond = new PerSecondCounterClass(parent, objectName + ".PerSecond");
     RunningAverage = new RunningAverageClass(parent, objectName +".RunningAverage");
     Accumulator = new AccumulatorClass(parent, objectName + ".Accumulator");
     Snapshot = new SnapshotClass(parent, objectName + ".Snapshot");
     Peak = new PeakClass(parent, objectName + ".Peak");
     StatString = new StatStringClass(parent, objectName + ".StatString");
     boolean = new booleanClass(parent, objectName + ".boolean");
     SnapshotDouble = new SnapshotDoubleClass(parent, objectName + ".SnapshotDouble") ;
 }
Exemple #9
0
 public StatStringClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton = new object();
     Name = objectName;
     _CurrentValue = "";
 }
Exemple #10
0
 public RunningAverageClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton = new object();
     Name      = objectName;
     parent.OnOneSecondTick += OnTimerTick;
 }
Exemple #11
0
 public PerSecondCounterClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton = new object();
     Name      = objectName;
     parent.OnOneSecondTick += OnTimerTick;
 }
Exemple #12
0
 public SnapshotDoubleClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton = new object();
     Name      = objectName;
 }
Exemple #13
0
 public StatStringClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton     = new object();
     Name          = objectName;
     _CurrentValue = "";
 }
Exemple #14
0
 public booleanClass(HEALTH_STATISTICS parent, string objectName)
 {
     singleton     = new object();
     Name          = objectName;
     _CurrentValue = false;
 }
Exemple #15
0
        // ///////////////////////////////////////////////////////
        //    Constructor
        /// <summary>
        /// AppData Constructor
        /// </summary>
        public APPLICATION_DATA()
        {
            try
            {
                AppClosingNotifiers = new List<APP_CLOSING_ITEM>();
                ThisComputerName = System.Net.Dns.GetHostEntry("LocalHost").HostName;
                RemoteServerLock = new object();

                HealthStatistics = new HEALTH_STATISTICS(this);

                SerialNumberLock = new object();
                globalFrameSerialNumber = 0;

                MoviePlayerParentPanel = new object[MAX_VIRTUAL_CHANNELS];

                LPRServiceControl = new LPR_SERVICE_CONTROL();
                LPRServiceControl.ConfigChangedServiceNeedsRestarting = false;
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception on APPLICATION_DATA Startup: ex : " + ex.Message);
            }
        }