コード例 #1
0
        private void CreateAndAddConsoleResultHandlerToEventAggregator()
        {
            if (_hasConsoleResultHandlerBeenAddeToEventAgregator == false)
            {
                _hasConsoleResultHandlerBeenAddeToEventAgregator = true;

                _ioc.ResolveAndAddToEventAggregator <ConsoleResultHandler>();
            }
        }
コード例 #2
0
        public StatLightRunnerFactory(ILogger logger, TinyIoCContainer ioc)
        {
            if (logger == null) throw new ArgumentNullException("logger");
            if (ioc == null) throw new ArgumentNullException("ioc");

            _ioc = ioc;
            _logger = logger;

            _eventSubscriptionManager = ioc.Resolve<IEventSubscriptionManager>();
            _eventPublisher = ioc.Resolve<IEventPublisher>();

            _ioc.ResolveAndAddToEventAggregator<ConsoleDebugListener>();

            _ioc.Resolve<ExtensionResolver>().AddExtensionsToEventAggregator();
        }
コード例 #3
0
        public StatLightRunnerFactory(ILogger logger, TinyIoCContainer ioc)
        {
            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            if (ioc == null)
            {
                throw new ArgumentNullException("ioc");
            }

            _ioc    = ioc;
            _logger = logger;

            _eventSubscriptionManager = ioc.Resolve <IEventSubscriptionManager>();
            _eventPublisher           = ioc.Resolve <IEventPublisher>();

            _ioc.ResolveAndAddToEventAggregator <ConsoleDebugListener>();

            _ioc.Resolve <ExtensionResolver>().AddExtensionsToEventAggregator();
        }