コード例 #1
0
        private static void RunInConsoleMode()
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Running in console mode.");

            HostEngine objWorkflowEngine = new HostEngine();

            objWorkflowEngine.Start();
            Console.WriteLine("Press Enter to stop the service...");
            Console.ReadLine();
            objWorkflowEngine.Stop();
        }
コード例 #2
0
 protected override void OnStart(string[] args)
 {
     Host = new HostEngine();
     Host.Start();
 }