private static void Main(string[] args) { var module = new CustomModule(); IKernel result = new StandardKernel(module); var commandProcessor = result.Get<CommandProcessor>(); //= new CommandProcessor(publisher, subsriberCreator, Console.In); commandProcessor.TextReader = Console.In; commandProcessor.SubscribeAndReadText(); Console.ReadLine(); }
private static void Main(string[] args) { var module = new CustomModule(); IKernel result = new StandardKernel(module); var commandProcessor = result.Get <CommandProcessor>(); //= new CommandProcessor(publisher, subsriberCreator, Console.In); commandProcessor.TextReader = Console.In; commandProcessor.SubscribeAndReadText(); Console.ReadLine(); }