Exemple #1
0
        private static void Work([CLAP.Description("worker to start, or none to start all")] string worker)
        {
            var host = new WorkerHost();

            host.Start(worker);
            var triggerHost = new TriggerHost();

            triggerHost.Start();
            Console.WriteLine();
            Console.WriteLine("PRESS ANY KEY TO STOP");
            Console.WriteLine();
            Console.ReadKey(true);
            host.Stop();
            triggerHost.Stop();
            Console.WriteLine("Goodbye!");
        }
Exemple #2
0
 protected override void OnStop()
 {
     _Host.Stop();
     _TriggerHost.Stop();
 }