예제 #1
0
        protected override void OnStart(string[] args)
        {
            container = ContainerFactory.CreateContainer();
            scope     = container.BeginLifetimeScope();

            watchdogManager = scope.Resolve <WatchdogManager>();
            watchdogManager.Start();
        }
예제 #2
0
        static void Main()
        {
            gXMLProcess = new xmlDataProcess();
            xmlConfigStart(false);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            mMainsystemForm = new MainSystemForm();
            mLogProc        = new LogProcess(gXMLDataConfig.SystemConfig.SaveLogFile, mMainsystemForm);

            mSystemManager   = new SystemManager(mMainsystemForm);
            mWatchdogManager = new WatchdogManager(mMainsystemForm);
            mNetworkProecss  = new NetworkProcess(mMainsystemForm);

            mLogProc.LogWrite(LogProcess.LOGTYPE.NORMAL, "Start watchdog Program");
            Application.Run(mMainsystemForm);
        }