public EntityService(ICoreScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IIdKeyMap idKeyMap, IEntityRepository entityRepository)
            : base(provider, loggerFactory, eventMessagesFactory)
        {
            _idKeyMap         = idKeyMap;
            _entityRepository = entityRepository;

            _objectTypes = new Dictionary <string, UmbracoObjectTypes>
            {
                { typeof(IDataType).FullName !, UmbracoObjectTypes.DataType },
 public TemplateCacheRefresher(
     AppCaches appCaches,
     IIdKeyMap idKeyMap,
     IContentTypeCommonRepository contentTypeCommonRepository,
     IEventAggregator eventAggregator,
     ICacheRefresherNotificationFactory factory)
     : base(appCaches, eventAggregator, factory)
 {
     _idKeyMap = idKeyMap;
     _contentTypeCommonRepository = contentTypeCommonRepository;
 }
Example #3
0
 public MediaCacheRefresher(
     AppCaches appCaches,
     IJsonSerializer serializer,
     IPublishedSnapshotService publishedSnapshotService,
     IIdKeyMap idKeyMap,
     IEventAggregator eventAggregator,
     ICacheRefresherNotificationFactory factory)
     : base(appCaches, serializer, eventAggregator, factory)
 {
     _publishedSnapshotService = publishedSnapshotService;
     _idKeyMap = idKeyMap;
 }
 public ContentTypeCacheRefresher(
     AppCaches appCaches,
     IJsonSerializer serializer,
     IPublishedSnapshotService publishedSnapshotService,
     IPublishedModelFactory publishedModelFactory,
     IIdKeyMap idKeyMap,
     IContentTypeCommonRepository contentTypeCommonRepository,
     IEventAggregator eventAggregator,
     ICacheRefresherNotificationFactory factory)
     : base(appCaches, serializer, eventAggregator, factory)
 {
     _publishedSnapshotService = publishedSnapshotService;
     _publishedModelFactory    = publishedModelFactory;
     _idKeyMap = idKeyMap;
     _contentTypeCommonRepository = contentTypeCommonRepository;
 }
Example #5
0
        public EntityService(IScopeProvider provider, ILoggerFactory loggerFactory, IEventMessagesFactory eventMessagesFactory, IIdKeyMap idKeyMap, IEntityRepository entityRepository)
            : base(provider, loggerFactory, eventMessagesFactory)
        {
            _idKeyMap         = idKeyMap;
            _entityRepository = entityRepository;

            _objectTypes = new Dictionary <string, UmbracoObjectTypes>
            {
                { typeof(IDataType).FullName, UmbracoObjectTypes.DataType },
                { typeof(IContent).FullName, UmbracoObjectTypes.Document },
                { typeof(IContentType).FullName, UmbracoObjectTypes.DocumentType },
                { typeof(IMedia).FullName, UmbracoObjectTypes.Media },
                { typeof(IMediaType).FullName, UmbracoObjectTypes.MediaType },
                { typeof(IMember).FullName, UmbracoObjectTypes.Member },
                { typeof(IMemberType).FullName, UmbracoObjectTypes.MemberType },
            };
        }
 public MemberCacheRefresher(AppCaches appCaches, IJsonSerializer serializer, IIdKeyMap idKeyMap, IEventAggregator eventAggregator, ICacheRefresherNotificationFactory factory)
     : base(appCaches, serializer, eventAggregator, factory)
 {
     _idKeyMap = idKeyMap;
 }