Пример #1
0
 public WidgetBasePartService(IApplicationContext applicationContext, IWidgetActivator widgetActivator, IServiceProvider serviceProvider, IHttpContextAccessor httpContextAccessor)
     : base(applicationContext)
 {
     _widgetActivator     = widgetActivator;
     _serviceProvider     = serviceProvider;
     _httpContextAccessor = httpContextAccessor;
 }
Пример #2
0
 public PageService(IWidgetBasePartService widgetService, IDataArchivedService dataArchivedService,
                    IApplicationContext applicationContext, IWidgetActivator widgetActivator)
     : base(applicationContext)
 {
     _widgetService       = widgetService;
     _dataArchivedService = dataArchivedService;
     _widgetActivator     = widgetActivator;
 }
Пример #3
0
 public WidgetBasePartService(IApplicationContext applicationContext, IWidgetActivator widgetActivator, IServiceProvider serviceProvider, IHttpContextAccessor httpContextAccessor, CMSDbContext dbContext)
     : base(applicationContext, dbContext)
 {
     _widgetActivator     = widgetActivator;
     _serviceProvider     = serviceProvider;
     _httpContextAccessor = httpContextAccessor;
     IsNeedNotifyChange   = true;
 }
Пример #4
0
 public WidgetBasePartService(IEncryptService encryptService, IDataArchivedService dataArchivedService,
                              IApplicationContext applicationContext, IWidgetActivator widgetActivator, IServiceProvider serviceProvider)
     : base(applicationContext)
 {
     EncryptService      = encryptService;
     DataArchivedService = dataArchivedService;
     _widgetActivator    = widgetActivator;
     _serviceProvider    = serviceProvider;
 }
Пример #5
0
 public WidgetController(IWidgetBasePartService widgetService, IWidgetTemplateService widgetTemplateService,
                         ICookie cookie, IPackageInstallerProvider packageInstallerProvider, IWidgetActivator widgetActivator)
 {
     _widgetService         = widgetService;
     _widgetTemplateService = widgetTemplateService;
     _cookie = cookie;
     _packageInstallerProvider = packageInstallerProvider;
     _widgetActivator          = widgetActivator;
 }
Пример #6
0
 public RuleService(IApplicationContext applicationContext,
                    IWidgetBasePartService widgetBasePartService,
                    IWidgetActivator widgetActivator, IRuleManager
                    ruleManager, CMSDbContext dbContext)
     : base(applicationContext, dbContext)
 {
     _widgetBasePartService = widgetBasePartService;
     _widgetActivator       = widgetActivator;
     _ruleManager           = ruleManager;
 }
Пример #7
0
 public WidgetBasePartService(IApplicationContext applicationContext,
                              IWidgetActivator widgetActivator,
                              ICacheManager <IEnumerable <WidgetBase> > pageWidgetCacheManage,
                              CMSDbContext dbContext, IEventManager eventManager)
     : base(applicationContext, dbContext)
 {
     _widgetActivator       = widgetActivator;
     _pageWidgetCacheManage = pageWidgetCacheManage;
     EventManager           = eventManager;
 }
Пример #8
0
 public SectionGroupController(ISectionGroupService sectionGroupService,
                               ISectionContentProviderService sectionContentProviderService,
                               IWidgetBasePartService widgetService, IPackageInstallerProvider packageInstallerProvider,
                               IWidgetActivator widgetActivator)
 {
     _sectionGroupService           = sectionGroupService;
     _sectionContentProviderService = sectionContentProviderService;
     _widgetService            = widgetService;
     _packageInstallerProvider = packageInstallerProvider;
     _widgetActivator          = widgetActivator;
 }
Пример #9
0
 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;
 }
Пример #10
0
 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;
 }
Пример #11
0
 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;
 }
Пример #12
0
 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;
 }
Пример #13
0
 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> >();
 }
Пример #14
0
 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>());
 }
Пример #15
0
 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;
 }
Пример #16
0
 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;
        }
Пример #19
0
 public PageService(IWidgetBasePartService widgetService, IApplicationContext applicationContext, IWidgetActivator widgetActivator, CMSDbContext dbContext)
     : base(applicationContext, dbContext)
 {
     _widgetService   = widgetService;
     _widgetActivator = widgetActivator;
 }