public ServiceRunner(IDispatcher messaging, IProcessTable processTable) { _dispatcher = messaging; _processtable = processTable; #if DEBUG Start(); Console.WriteLine("Ctrl+c to stop"); Console.ReadKey(); // Set up Ctrl-C to stop the sessions Console.CancelKeyPress += (object s, ConsoleCancelEventArgs args) => _cancelTasks.Cancel(); Console.WriteLine("tasks cancelled."); Console.ReadKey(); #endif }
public MessageReceiver() { _queue = MessageMiddleware.Instace.CreateConsumer(); _processes = new ProcessTable(); }