public WidgetBasePartService(IApplicationContext applicationContext, IWidgetActivator widgetActivator, IServiceProvider serviceProvider, IHttpContextAccessor httpContextAccessor) : base(applicationContext) { _widgetActivator = widgetActivator; _serviceProvider = serviceProvider; _httpContextAccessor = httpContextAccessor; }
public PageService(IWidgetBasePartService widgetService, IDataArchivedService dataArchivedService, IApplicationContext applicationContext, IWidgetActivator widgetActivator) : base(applicationContext) { _widgetService = widgetService; _dataArchivedService = dataArchivedService; _widgetActivator = widgetActivator; }
public WidgetBasePartService(IApplicationContext applicationContext, IWidgetActivator widgetActivator, IServiceProvider serviceProvider, IHttpContextAccessor httpContextAccessor, CMSDbContext dbContext) : base(applicationContext, dbContext) { _widgetActivator = widgetActivator; _serviceProvider = serviceProvider; _httpContextAccessor = httpContextAccessor; IsNeedNotifyChange = true; }
public WidgetBasePartService(IEncryptService encryptService, IDataArchivedService dataArchivedService, IApplicationContext applicationContext, IWidgetActivator widgetActivator, IServiceProvider serviceProvider) : base(applicationContext) { EncryptService = encryptService; DataArchivedService = dataArchivedService; _widgetActivator = widgetActivator; _serviceProvider = serviceProvider; }
public WidgetController(IWidgetBasePartService widgetService, IWidgetTemplateService widgetTemplateService, ICookie cookie, IPackageInstallerProvider packageInstallerProvider, IWidgetActivator widgetActivator) { _widgetService = widgetService; _widgetTemplateService = widgetTemplateService; _cookie = cookie; _packageInstallerProvider = packageInstallerProvider; _widgetActivator = widgetActivator; }
public RuleService(IApplicationContext applicationContext, IWidgetBasePartService widgetBasePartService, IWidgetActivator widgetActivator, IRuleManager ruleManager, CMSDbContext dbContext) : base(applicationContext, dbContext) { _widgetBasePartService = widgetBasePartService; _widgetActivator = widgetActivator; _ruleManager = ruleManager; }
public WidgetBasePartService(IApplicationContext applicationContext, IWidgetActivator widgetActivator, ICacheManager <IEnumerable <WidgetBase> > pageWidgetCacheManage, CMSDbContext dbContext, IEventManager eventManager) : base(applicationContext, dbContext) { _widgetActivator = widgetActivator; _pageWidgetCacheManage = pageWidgetCacheManage; EventManager = eventManager; }
public SectionGroupController(ISectionGroupService sectionGroupService, ISectionContentProviderService sectionContentProviderService, IWidgetBasePartService widgetService, IPackageInstallerProvider packageInstallerProvider, IWidgetActivator widgetActivator) { _sectionGroupService = sectionGroupService; _sectionContentProviderService = sectionContentProviderService; _widgetService = widgetService; _packageInstallerProvider = packageInstallerProvider; _widgetActivator = widgetActivator; }
public WidgetBasePartService(IApplicationContext applicationContext, IWidgetActivator widgetActivator, IServiceProvider serviceProvider, ICacheManager <IEnumerable <WidgetBase> > pageWidgetCacheManage, CMSDbContext dbContext) : base(applicationContext, dbContext) { _widgetActivator = widgetActivator; _serviceProvider = serviceProvider; _pageWidgetCacheManage = pageWidgetCacheManage; IsNeedNotifyChange = true; }
public LayoutService(IDataArchivedService dataArchivedService, IZoneService zoneService, IWidgetBasePartService widgetService, IApplicationContext applicationContext, ILayoutHtmlService layoutHtmlService, IWidgetActivator widgetActivator, CMSDbContext dbContext) : base(applicationContext, dbContext) { _zoneService = zoneService; _widgetService = widgetService; _layoutHtmlService = layoutHtmlService; _widgetActivator = widgetActivator; }
public PageService(IWidgetBasePartService widgetService, IApplicationContext applicationContext, IHttpContextAccessor httpContextAccessor, IWidgetActivator widgetActivator, IZoneService zoneService, ILayoutHtmlService layoutHtmlService, CMSDbContext dbContext) : base(applicationContext, dbContext) { _widgetService = widgetService; _httpContextAccessor = httpContextAccessor; _widgetActivator = widgetActivator; _zoneService = zoneService; _layoutHtmlService = layoutHtmlService; }
public TemplateImporterService(IWebHostEnvironment hostingEnvironment, IThemeService themeService, ILayoutService layoutService, ILayoutHtmlService layoutHtmlService, IPageService pageService, IWidgetActivator widgetActivator, IWdigetCreatorManager widgetCreatorManager) { _hostingEnvironment = hostingEnvironment; _themeService = themeService; _layoutService = layoutService; _pageService = pageService; _widgetActivator = widgetActivator; ThemeBasePath = Path.Combine(_hostingEnvironment.WebRootPath, ThemeFolder); _widgetCreatorManager = widgetCreatorManager; }
public PageService(IWidgetBasePartService widgetService, IApplicationContext applicationContext, IHttpContextAccessor httpContextAccessor, IWidgetActivator widgetActivator, IZoneService zoneService, ILayoutHtmlService layoutHtmlService, CMSDbContext dbContext) : base(applicationContext, dbContext) { _widgetService = widgetService; _httpContextAccessor = httpContextAccessor; _widgetActivator = widgetActivator; _zoneService = zoneService; _layoutHtmlService = layoutHtmlService; _cachedPage = new Dictionary <string, IEnumerable <PageEntity> >(); }
public LayoutService(IDataArchivedService dataArchivedService, IZoneService zoneService, IWidgetBasePartService widgetService, IApplicationContext applicationContext, ILayoutHtmlService layoutHtmlService, IWidgetActivator widgetActivator, ICacheManager <ConcurrentDictionary <string, object> > cacheManager, CMSDbContext dbContext) : base(applicationContext, dbContext) { _zoneService = zoneService; _widgetService = widgetService; _layoutHtmlService = layoutHtmlService; _widgetActivator = widgetActivator; _cache = cacheManager.GetOrAdd("LayoutCacheKey", key => new ConcurrentDictionary <string, object>()); }
public LayoutService(IDataArchivedService dataArchivedService, IPageService pageService, IZoneService zoneService, IWidgetBasePartService widgetService, IApplicationContext applicationContext, ILayoutHtmlService layoutHtmlService, IWidgetActivator widgetActivator) : base(applicationContext) { DataArchivedService = dataArchivedService; PageService = pageService; ZoneService = zoneService; WidgetService = widgetService; LayoutHtmlService = layoutHtmlService; WidgetActivator = widgetActivator; }
public PageService(IWidgetBasePartService widgetService, IApplicationContext applicationContext, IWidgetActivator widgetActivator, IZoneService zoneService, ILayoutHtmlService layoutHtmlService, ILocalize localize, CMSDbContext dbContext, IEventManager eventManager) : base(applicationContext, dbContext) { _widgetService = widgetService; _widgetActivator = widgetActivator; _zoneService = zoneService; _layoutHtmlService = layoutHtmlService; _eventManager = eventManager; _localize = localize; _cachedPage = new Dictionary <string, IEnumerable <PageEntity> >(StringComparer.OrdinalIgnoreCase); }
/// <summary> /// Initialises a new instance of <see cref="DefaultWidgetInvoker"/>. /// </summary> /// <param name="typeActivatorCache">The type activator cache.</param> /// <param name="widgetActivator">The widget activator.</param> /// <param name="argumentBinder">The widget argument binder.</param> public DefaultWidgetInvoker(ITypeActivatorCache typeActivatorCache, IWidgetActivator widgetActivator, IWidgetArgumentBinder argumentBinder) { if (typeActivatorCache == null) { throw new ArgumentNullException(nameof(typeActivatorCache)); } if (widgetActivator == null) { throw new ArgumentNullException(nameof(widgetActivator)); } if (argumentBinder == null) { throw new ArgumentNullException(nameof(argumentBinder)); } _typeActivatorCache = typeActivatorCache; _widgetActivator = widgetActivator; _argumentBinder = argumentBinder; }
/// <summary> /// Initialises a new instance of <see cref="DefaultWidgetInvokerFactory"/>. /// </summary> /// <param name="typeActivatorCache">The type activator cache.</param> /// <param name="widgetActivator">The widget activator.</param> /// <param name="argumentBinder">The widget argument binder.</param> public DefaultWidgetInvokerFactory(ITypeActivatorCache typeActivatorCache, IWidgetActivator widgetActivator, IWidgetArgumentBinder argumentBinder) { if (typeActivatorCache == null) { throw new ArgumentNullException(nameof(typeActivatorCache)); } if (widgetActivator == null) { throw new ArgumentNullException(nameof(widgetActivator)); } if (argumentBinder == null) { throw new ArgumentNullException(nameof(argumentBinder)); } _typeActivatorCache = typeActivatorCache; _widgetActivator = widgetActivator; _argumentBinder = argumentBinder; }
public PageService(IWidgetBasePartService widgetService, IApplicationContext applicationContext, IWidgetActivator widgetActivator, CMSDbContext dbContext) : base(applicationContext, dbContext) { _widgetService = widgetService; _widgetActivator = widgetActivator; }