public TotalEfficiencyRateCalculatorService(string conString)
        {
            m_Timer          = new System.Timers.Timer();
            m_Timer.Elapsed += new System.Timers.ElapsedEventHandler(m_Timer_Elapsed);
            m_Timer.Interval = 1000;

            m_DB = new DBxDatabase();
            m_DB.ConnectionString = conString;
            //m_DB.ConnectionString = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=LocalDBx;Data Source=Client-003";

            m_IsCalculating = false;
            m_IsStarted     = false;
        }
Example #2
0
        public EmsService(string connectionString)
        {
            m_Callbacks        = new List <IMonitorCallback>();
            m_MachineList      = new Dictionary <string, EmsMachineRow>();
            m_ActivityRecorder = new EmsActivityRecorder();

            m_DB = new DBxDatabase();
            m_DB.ConnectionString = connectionString;
            //m_DB.ConnectionString = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=LocalDBx;Data Source=Client-003";

            m_ServiceHost = new ServiceHost(this);

            m_KeepMonitoCallbackAliveTimer          = new System.Timers.Timer();
            m_KeepMonitoCallbackAliveTimer.Interval = 30000;
            m_KeepMonitoCallbackAliveTimer.Elapsed += new ElapsedEventHandler(m_KeepMonitoCallbackAliveTimer_Elapsed);

            m_DailySaveTimer          = new System.Timers.Timer();
            m_DailySaveTimer.Interval = 5000;
            m_DailySaveTimer.Elapsed += new ElapsedEventHandler(m_DailySaveTimer_Elapsed);
        }
Example #3
0
 public TmeCalculator(string connectionString)
 {
     m_DB = new DBxDatabase();
     m_DB.ConnectionString = connectionString;
 }