コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: EmsService.cs プロジェクト: worrawutK/EMS-Service
        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);
        }
コード例 #3
0
 public TmeCalculator(string connectionString)
 {
     m_DB = new DBxDatabase();
     m_DB.ConnectionString = connectionString;
 }