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(); }
protected override void OnStart(string[] args) { Host = new HostEngine(); Host.Start(); }