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

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

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