static void Main(string[] args) { kernel = new StandardKernel(new DIContainer()); jsonHandle = kernel.Get <JsonHandle>(); ProducerTimer = Int32.Parse(jsonHandle.JsonKey("ProducerTimer")); ConsumerTimer = Int32.Parse(jsonHandle.JsonKey("ConsumerTimer")); identificador = jsonHandle.JsonKey("Identificador"); appMessage = kernel.Get <AppMessageService>(); thread = new Thread[] { new Thread(new ThreadStart(ThreadProducer)) { Priority = ThreadPriority.Highest }, new Thread(new ThreadStart(ThreadConsumer)) { Priority = ThreadPriority.Lowest } }; thread[0].Start(); thread[1].Start(); key = new ConsoleKeyInfo(); key = Console.ReadKey(); //Console.WriteLine("Hello World!"); }
internal void InitializeMsgServices(ListView appMessageList, EventHandler showMessagesCallback) { AppMsgService service = new AppMsgService(appMessageList); if (showMessagesCallback != null) { service.ShowMessagesCallback += showMessagesCallback; } _msgService = service; }