public override void DoBeforeRun(IContainer container) { if (_options != null) { var serviceEntryContainer = container.Resolve <IServiceEntryContainer>(); var logger = container.Resolve <ILogger>(); ServicesLoader servicesLoader = new ServicesLoader(serviceEntryContainer, logger, _options); servicesLoader.LoadServices(); } base.DoInit(container); }
public override void DoRun(IContainer container) { if (_options != null) { var serviceEntryContainer = container.Resolve <IServiceEntryContainer>(); var loggerFactory = container.Resolve <ILoggerFactory>(); var logger = loggerFactory.Create(this.GetType()); ServicesLoader servicesLoader = new ServicesLoader(serviceEntryContainer, logger, _options); servicesLoader.LoadServices(); } base.DoInit(container); }