Example #1
0
        public AdminController(
            IEnumerable <IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IDataMigrationManager dataMigraitonManager,
            IFeatureManager featureManager,
            ISiteThemeService siteThemeService,
            IExtensionManager extensionManager,
            ShellDescriptor shellDescriptor,
            IPreviewTheme previewTheme,
            IThemeService themeService,
            ShellSettings shellSettings)
        {
            Services = services;

            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _dataMigrationManager         = dataMigraitonManager;
            _siteThemeService             = siteThemeService;
            _extensionManager             = extensionManager;
            _shellDescriptor = shellDescriptor;
            _featureManager  = featureManager;
            _previewTheme    = previewTheme;
            _themeService    = themeService;
            _shellSettings   = shellSettings;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Example #2
0
        public AdminController(
            IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IDataMigrationManager dataMigraitonManager,
            IFeatureManager featureManager,
            ISiteThemeService siteThemeService,
            IExtensionManager extensionManager,
            ShellDescriptor shellDescriptor,
            IPreviewTheme previewTheme, 
            IThemeService themeService,
            IReportsCoordinator reportsCoordinator) {
            Services = services;

            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _dataMigrationManager = dataMigraitonManager;
            _siteThemeService = siteThemeService;
            _extensionManager = extensionManager;
            _shellDescriptor = shellDescriptor;
            _featureManager = featureManager;
            _previewTheme = previewTheme;
            _themeService = themeService;
            _reportsCoordinator = reportsCoordinator;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
 public AdminController(IOrchardServices services, IThemeService themeService, IPreviewTheme previewTheme, IAuthorizer authorizer, INotifier notifier)
 {
     Services = services;
     _themeService = themeService;
     _previewTheme = previewTheme;
     T = NullLocalizer.Instance;
 }
Example #4
0
 public PreviewThemeFilter(
     IPreviewTheme previewTheme,
     IWorkContextAccessor workContextAccessor,
     IShapeFactory shapeFactory,
     IFeatureManager featureManager) {
     _previewTheme = previewTheme;
     _workContextAccessor = workContextAccessor;
     _shapeFactory = shapeFactory;
     _featureManager = featureManager;
 }
 public PreviewThemeFilter(
     IPreviewTheme previewTheme,
     IWorkContextAccessor workContextAccessor,
     IShapeFactory shapeFactory,
     IFeatureManager featureManager)
 {
     _previewTheme        = previewTheme;
     _workContextAccessor = workContextAccessor;
     _shapeFactory        = shapeFactory;
     _featureManager      = featureManager;
 }
Example #6
0
 public PreviewThemeSelector(IPreviewTheme previewTheme) {
     _previewTheme = previewTheme;
 }
 public PreviewThemeSelector(IPreviewTheme previewTheme)
 {
     _previewTheme = previewTheme;
 }
 public PreviewThemeFilter(IThemeService themeService, IPreviewTheme previewTheme)
 {
     _themeService = themeService;
     _previewTheme = previewTheme;
 }