private OPCDataPointManager()
        {
            string Function_Name = "OPCDataPointManager";

            LogHelper.Trace(CLASS_NAME, Function_Name, "Function_Entered");

            m_DataPointdic    = new Dictionary <string, OPCDPGrpDetails>();
            m_checkConfigVars = new CheckConfigVars();

            m_opcSrv1Name = ConfigureFileHelper.GetInstance().OPCDTSever1Name;
            //string tempString = ConfigureFileHelper.GetInstance().DTTimeInteval;
            string tempString = ConfigureFileHelper.GetInstance().TimeIntevalMS;

            if (isNumeric(tempString, System.Globalization.NumberStyles.Integer))
            {
                m_OPCLogInterval = int.Parse(tempString);
            }

            m_loggerQuene = new OPCLoggerQuene(m_opcSrv1Name, OPCSVR1HOST);

            m_localConnectionString = ConfigureFileHelper.GetInstance().ConnectionString;

            m_writeQuene = new OPCLoggerWriteQuene();

            LogHelper.Trace(CLASS_NAME, Function_Name, "Function_Exited");
        }
Ejemplo n.º 2
0
        public OPCLoggerQuene(string ServerName, string HostName)
        {
            string Function_Name = "OPCLoggerQuene";

            LogHelper.Trace(CLASS_NAME, Function_Name, "Function_Entered");

            m_opcSrvName      = ServerName;
            m_opcSvrHost      = HostName;
            m_checkConfigVars = new CheckConfigVars();
            // m_FailedDataPTQuene = new List<EtyTrendLog>();
            // m_FailedDataPTQuene.Capacity = QUENECAPACITY;

            LogHelper.Trace(CLASS_NAME, Function_Name, "Function_Exited");
        }