// Injecting IResourceManager is necessary because on shell start in the end IShapeDisplayEvents are instantiated, thus this class
 // as well. ResourceManager also implementing IUnitOfWorkDependency causes an Autofac DependencyResolutionException with the message
 // "No scope with a Tag matching 'work' is visible from the scope in which the instance was requested.".
 // See: https://github.com/OrchardCMS/Orchard/issues/4852
 public OverridesInjector(
     IHttpContextAccessor hca,
     Work<IResourceManager> resourceManagerWork,
     IThemeOverrideService themeOverrideService)
 {
     _hca = hca;
     _resourceManagerWork = resourceManagerWork;
     _themeOverrideService = themeOverrideService;
 }
 // Injecting IResourceManager is necessary because on shell start in the end IShapeDisplayEvents are instantiated, thus this class
 // as well. ResourceManager also implementing IUnitOfWorkDependency causes an Autofac DependencyResolutionException with the message
 // "No scope with a Tag matching 'work' is visible from the scope in which the instance was requested.".
 // See: https://github.com/OrchardCMS/Orchard/issues/4852
 public OverridesInjector(
     IHttpContextAccessor hca,
     Work <IResourceManager> resourceManagerWork,
     IThemeOverrideService themeOverrideService)
 {
     _hca = hca;
     _resourceManagerWork  = resourceManagerWork;
     _themeOverrideService = themeOverrideService;
 }
        public AdminController(
            IAuthorizer authorizer,
            IThemeOverrideService themeOverrideService,
            ICombinatorCacheManipulationEventHandler combinatorCacheManipulator,
            INotifier notifier)
        {
            _authorizer = authorizer;
            _themeOverrideService = themeOverrideService;
            _combinatorCacheManipulator = combinatorCacheManipulator;
            _notifier = notifier;

            T = NullLocalizer.Instance;
        }
示例#4
0
        public AdminController(
            IAuthorizer authorizer,
            IThemeOverrideService themeOverrideService,
            ICombinatorCacheManipulationEventHandler combinatorCacheManipulator,
            INotifier notifier)
        {
            _authorizer                 = authorizer;
            _themeOverrideService       = themeOverrideService;
            _combinatorCacheManipulator = combinatorCacheManipulator;
            _notifier = notifier;

            T = NullLocalizer.Instance;
        }