// Not injecting ISiteService as Work<T> would cause an Autofac DependencyResolutionException with "No scope with a Tag // matching 'work' is visible from the scope in which the instance was requested." The same as with OverridesInjector. // See: https://github.com/OrchardCMS/Orchard/issues/4852 public ThemeOverrideService( IStorageProvider storageProvider, Work <ISiteService> siteServiceWork, IJsonConverter jsonConverter, IPlacementProcessor placementProcessor, ICacheService cacheService) { _storageProvider = storageProvider; _siteServiceWork = siteServiceWork; _jsonConverter = jsonConverter; _placementProcessor = placementProcessor; _cacheService = cacheService; }
// Not injecting ISiteService as Work<T> would cause an Autofac DependencyResolutionException with "No scope with a Tag // matching 'work' is visible from the scope in which the instance was requested." The same as with OverridesInjector. // See: https://github.com/OrchardCMS/Orchard/issues/4852 public ThemeOverrideService( IStorageProvider storageProvider, Work<ISiteService> siteServiceWork, IJsonConverter jsonConverter, IPlacementProcessor placementProcessor, ICacheService cacheService) { _storageProvider = storageProvider; _siteServiceWork = siteServiceWork; _jsonConverter = jsonConverter; _placementProcessor = placementProcessor; _cacheService = cacheService; }