예제 #1
0
 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);
 }
예제 #2
0
 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);
 }