protected override void OnStart(string[] args) { container = ContainerFactory.CreateContainer(); scope = container.BeginLifetimeScope(); watchdogManager = scope.Resolve <WatchdogManager>(); watchdogManager.Start(); }
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); }