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");
        }
Example #2
0
 public static ConfigureFileHelper GetInstance()
 {
     if (m_instance == null)
     {
         m_instance = new ConfigureFileHelper();
     }
     return(m_instance);
 }
Example #3
0
        static void Main()
        {
            ConfigureFileHelper.GetInstance().init();

            //LanguageType type = LanguageTypeHelper.GetInstance().GetLanTypeByLanStr(ConfigureFileHelper.GetInstance().LanguageStr);
            //LanguageTypeHelper.GetInstance().SetLanaguageType(type);

            DAOHelper.SetEncodingChange(ConfigureFileHelper.GetInstance().EncodingChange);

            STEE.ISCS.Log.LogHelper.setLogFile("../logs/Log_OPCDataLogger.txt");
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new OPCDataLogger());
        }