コード例 #1
0
        public void Start()
        {
            dependencyInjection = new DependencyInjection();
            dependencyInjection.Initialize();
            logger = dependencyInjection.Container.Resolve<ILogger>();

            dependencyInjection.Container.Resolve<IMessagePublisher>().Start(9193);
            dependencyInjection.Container.Resolve<IOutgoingQueue>().Start();

            dependencyInjection.Container.Resolve<IIncomingMessageQueue>().Start();
            dependencyInjection.Container.Resolve<IClientMessagePuller>().Start(9192);

            logger.Info("Service started");
        }
コード例 #2
0
 public void AllRegisteredInstancesShouldBeResolved()
 {
     var container = new DependencyInjection();
     container.Initialize();
     Assert.DoesNotThrow(() => DependencyInjectionResolveTester.CheckForPotentiallyMisconfiguredComponents(container.Container));
 }