Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        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();
        }