/// <summary>
 /// Constructor
 /// </summary>
 /// <param name="locatorScopeFactory"></param>
 /// <param name="locator"></param>
 public WebModuleStartupHandler(ILocatorScopedFactory locatorScopeFactory, ILocator locator)
 {
     _LocatorScopeFactory = locatorScopeFactory;
     _StartupModules      = locator.GetAll <IStartupModule>(); // hack: needed to get correct sorting on some locators!
 }
 /// <summary>
 /// Injected constructor
 /// </summary>
 /// <param name="locator">Locator is passed to get all startup modules in a sorted manner, as some locators cannot sort while injecting</param>
 /// <param name="startupConfiguration">Used to log any errors</param>
 public ShutdownHandler(ILocator locator, IStartupConfiguration startupConfiguration)
 {
     _Locator              = locator;
     _StartupModules       = locator.GetAll <IStartupModule>().ToList();
     _StartupConfiguration = startupConfiguration;
 }
Example #3
0
 /// <summary>
 /// Mockable constructor
 /// </summary>
 /// <param name="indexCustomizers"></param>
 /// <param name="unscopedLocator"></param>
 public ContentIndexCustomizer(IEnumerable <IContentIndexCustomizer> indexCustomizers = null, ILocator unscopedLocator = null)
 {
     _Locator          = unscopedLocator ?? FallbackLocator.Service;
     _IndexCustomizers = indexCustomizers ?? _Locator.GetAll <IContentIndexCustomizer>();
 }