Example #1
0
        static void Main(string[] args)
        {
            Injector.Add <IOutputWriter, ConsoleOutput>();

            var messageImpl = Allocator.New <ITerminalMessage>();

            Console.WriteLine(messageImpl.Message);
            Console.ReadLine();
        }
Example #2
0
 public ConsoleCommandProcessor(Assembly assembly) : base(new List <Assembly> {
     assembly, typeof(GetPeersCommand).Assembly
 })
 {
     Injector.Add(this);
 }