コード例 #1
0
ファイル: Service1.cs プロジェクト: leeyinheng/IPC.Solution
        protected override void OnStart(string[] args)
        {

            syncEngine = new SyncEngine.SyncEngine();

            syncEngine.Execute();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: leeyinheng/IPC.Solution
        static void Main(string[] args)
        {
            try
            {
                var syncEngine = new IPC.SyncEngine.SyncEngine();

                syncEngine.Execute();

                Console.WriteLine("Press enter key to stop program");

                Console.ReadLine(); 
            }
            catch (Exception ex)
            {

                Console.Write(ex.Message); 
            }

          
        }