Пример #1
0
 protected SyncHandlerLevelBase(
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <TObject> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
 }
Пример #2
0
 public SyncHandlerBase(
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <TObject> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
     this.entityService = entityService;
 }
Пример #3
0
 public MemberTypeHandler(
     IMemberTypeService memberTypeService,
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <IMemberType> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
     this.memberTypeService = memberTypeService;
 }
Пример #4
0
 public ContentTemplateHandler(
     IContentService contentService,
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ContentTemplateSerializer serializer, // concreate because we want to make sure we get the blueprint one.
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
     this.contentService = contentService;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="uSyncMediaTypeService"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="mediaTypeService">The media type service.</param>
 /// <param name="appCaches">The application caches.</param>
 /// <param name="entityService">The entity service.</param>
 /// <param name="shortStringHelper">The short string helper.</param>
 /// <param name="uSyncFileService">The u synchronize file service.</param>
 /// <param name="uSyncEventService">The u synchronize event service.</param>
 /// <param name="uSyncConfigService">The u synchronize configuration service.</param>
 /// <param name="syncItemFactory">The synchronize item factory.</param>
 public uSyncMediaTypeService(ILogger <MediaTypeHandler> logger, IMediaTypeService mediaTypeService, AppCaches appCaches, IEntityService entityService, IShortStringHelper shortStringHelper, SyncFileService uSyncFileService, uSyncEventService uSyncEventService, uSyncConfigService uSyncConfigService, ISyncItemFactory syncItemFactory)
 {
     _logger             = logger;
     _mediaTypeService   = mediaTypeService;
     _appCaches          = appCaches;
     _entityService      = entityService;
     _shortStringHelper  = shortStringHelper;
     _uSyncFileService   = uSyncFileService;
     _uSyncEventService  = uSyncEventService;
     _uSyncConfigService = uSyncConfigService;
     _syncItemFactory    = syncItemFactory;
 }
Пример #6
0
 public TemplateHandler(
     IFileService fileService,
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <ITemplate> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
     this.fileService = fileService;
 }
Пример #7
0
 public DictionaryHandler(
     ILocalizationService localizationService,
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <IDictionaryItem> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
     this.localizationService = localizationService;
 }
Пример #8
0
 /// <summary>
 /// Base constructor, should never be called directly
 /// </summary>
 protected ContentHandlerBase(
     ILogger <ContentHandlerBase <TObject, TService> > logger,
     IEntityService entityService,
     AppCaches appCaches,
     IShortStringHelper shortStringHelper,
     SyncFileService syncFileService,
     uSyncEventService mutexService,
     uSyncConfigService uSyncConfigService,
     ISyncItemFactory syncItemFactory)
     : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfigService, syncItemFactory)
 {
 }
Пример #9
0
 public ContentTypeHandler(
     IContentTypeService contentTypeService,
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <IContentType> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
     this.contentTypeService = contentTypeService;
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="uSyncContentService"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="contentService">The content service.</param>
 /// <param name="appCaches">The application caches.</param>
 /// <param name="entityService">The entity service.</param>
 /// <param name="shortStringHelper">The short string helper.</param>
 /// <param name="uSyncFileService">The u synchronize file service.</param>
 /// <param name="uSyncEventService">The u synchronize event service.</param>
 /// <param name="uSyncConfigService">The u synchronize configuration service.</param>
 /// <param name="syncItemFactory">The synchronize item factory.</param>
 public uSyncContentService(ILogger <ContentHandler> logger, IContentService contentService, AppCaches appCaches, IEntityService entityService, IShortStringHelper shortStringHelper, SyncFileService usyncFileService, uSyncEventService usyncEventService, uSyncConfigService usyncConfigService, ISyncItemFactory syncItemFactory)
 {
     _logger             = logger;
     _contentService     = contentService;
     _appCaches          = appCaches;
     _entityService      = entityService;
     _shortStringHelper  = shortStringHelper;
     _usyncFileService   = usyncFileService;
     _usyncEventService  = usyncEventService;
     _usyncConfigService = usyncConfigService;
     _syncItemFactory    = syncItemFactory;
 }
Пример #11
0
 public RelationTypeHandler(
     IRelationService relationService,
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <IRelationType> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
     this.relationService = relationService;
 }
Пример #12
0
 public DomainHandler(
     IDomainService domainService,
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <IDomain> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
     this.domainService = domainService;
 }
Пример #13
0
 public ContentHandler(
     IContentService contentService,
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <IContent> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
     this.contentService = contentService;
     performDoubleLookup = UmbracoVersion.LocalVersion.Major != 8 || UmbracoVersion.LocalVersion.Minor < 4;
 }
Пример #14
0
 /// <inheritdoc/>
 public SyncHandlerBase(
     ILogger <SyncHandlerBase <TObject, TService> > logger,
     IEntityService entityService,
     AppCaches appCaches,
     IShortStringHelper shortStringHelper,
     SyncFileService syncFileService,
     uSyncEventService mutexService,
     uSyncConfigService uSyncConfig,
     ISyncItemFactory syncItemFactory)
     : base(logger, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfig, syncItemFactory)
 {
     this.entityService = entityService;
 }
Пример #15
0
 public DataSourceHandler(IProfilingLogger logger,
                          SyncFormService syncFormService,
                          IDataSourceStorage dataSourceStorage,
                          IDataSourceService dataSourceService,
                          AppCaches appCaches,
                          ISyncSerializer <FormDataSource> serializer,
                          ISyncItemFactory itemFactory,
                          SyncFileService syncFileService)
     : base(logger, appCaches, serializer, itemFactory, syncFileService)
 {
     this.syncFormService   = syncFormService;
     this.dataSourceService = dataSourceService;
     this.dataSourceStorage = dataSourceStorage;
 }
Пример #16
0
 /// <inheritdoc/>
 public RelationTypeHandler(
     ILogger <RelationTypeHandler> logger,
     IEntityService entityService,
     IRelationService relationService,
     AppCaches appCaches,
     IShortStringHelper shortStringHelper,
     SyncFileService syncFileService,
     uSyncEventService mutexService,
     uSyncConfigService uSyncConfigService,
     ISyncItemFactory syncItemFactory)
     : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfigService, syncItemFactory)
 {
     this.relationService = relationService;
 }
Пример #17
0
 /// <summary>
 ///  Constructor - loaded via DI
 /// </summary>
 public ContentTypeHandler(
     ILogger <ContentTypeHandler> logger,
     IEntityService entityService,
     IContentTypeService contentTypeService,
     AppCaches appCaches,
     IShortStringHelper shortStringHelper,
     SyncFileService syncFileService,
     uSyncEventService mutexService,
     uSyncConfigService uSyncConfig,
     ISyncItemFactory syncItemFactory)
     : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfig, syncItemFactory)
 {
     this.contentTypeService = contentTypeService;
 }
Пример #18
0
 /// <inheritdoc/>
 public DictionaryHandler(
     ILogger <DictionaryHandler> logger,
     IEntityService entityService,
     ILocalizationService localizationService,
     AppCaches appCaches,
     IShortStringHelper shortStringHelper,
     SyncFileService syncFileService,
     uSyncEventService mutexService,
     uSyncConfigService uSyncConfigService,
     ISyncItemFactory syncItemFactory)
     : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfigService, syncItemFactory)
 {
     this.localizationService = localizationService;
 }
Пример #19
0
 /// <inheritdoc/>
 public MediaHandler(
     ILogger <MediaHandler> logger,
     IEntityService entityService,
     IMediaService mediaService,
     AppCaches appCaches,
     IShortStringHelper shortStringHelper,
     SyncFileService syncFileService,
     uSyncEventService mutexService,
     uSyncConfigService uSyncConfigService,
     ISyncItemFactory syncItemFactory)
     : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfigService, syncItemFactory)
 {
     this.mediaService = mediaService;
 }
Пример #20
0
 /// <inheritdoc/>
 public TemplateHandler(
     ILogger <TemplateHandler> logger,
     IEntityService entityService,
     IFileService fileService,
     AppCaches appCaches,
     IShortStringHelper shortStringHelper,
     SyncFileService syncFileService,
     uSyncEventService mutexService,
     uSyncConfigService uSyncConfig,
     ISyncItemFactory syncItemFactory)
     : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfig, syncItemFactory)
 {
     this.fileService = fileService;
 }
Пример #21
0
 /// <inheritdoc/>
 public DomainHandler(
     ILogger <DomainHandler> logger,
     IEntityService entityService,
     IDomainService domainService,
     AppCaches appCaches,
     IShortStringHelper shortStringHelper,
     SyncFileService syncFileService,
     uSyncEventService mutexService,
     uSyncConfigService configService,
     ISyncItemFactory syncItemFactory)
     : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, configService, syncItemFactory)
 {
     this.domainService = domainService;
 }
Пример #22
0
        public PreValueHandler(IProfilingLogger logger,
                               SyncFormService syncFormService,
                               IPrevalueSourceService prevalueSourceService,
                               IPrevalueSourceStorage prevalueSourceStorage,
                               AppCaches appCaches,
                               ISyncSerializer <FieldPreValueSource> serializer,
                               ISyncItemFactory itemFactory,
                               SyncFileService syncFileService)
            : base(logger, appCaches, serializer, itemFactory, syncFileService)
        {
            this.syncFormService = syncFormService;

            this.prevalueSourceService = prevalueSourceService;
            this.prevalueSourceStorage = prevalueSourceStorage;
        }
Пример #23
0
        public FormHandler(IProfilingLogger logger,
                           SyncFormService syncFormService,
                           IFormService formService,
                           IFormStorage formStorage,
                           AppCaches appCaches,
                           ISyncSerializer <Form> serializer,
                           ISyncItemFactory itemFactory,
                           SyncFileService syncFileService)
            : base(logger, appCaches, serializer, itemFactory, syncFileService)
        {
            this.syncFormService = syncFormService;

            this.formService = formService;
            this.formStorage = formStorage;
        }
Пример #24
0
        /// <summary>
        /// Constructor, called via DI
        /// </summary>
        public ContentHandler(
            ILogger <ContentHandler> logger,
            IEntityService entityService,
            IContentService contentService,
            AppCaches appCaches,
            IShortStringHelper shortStringHelper,
            SyncFileService syncFileService,
            uSyncEventService mutexService,
            uSyncConfigService uSyncConfigService,
            ISyncItemFactory syncItemFactory)
            : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfigService, syncItemFactory)
        {
            this.contentService = contentService;

            // make sure we get the default content serializer (not just the first one that loads)
            this.serializer = syncItemFactory.GetSerializer <IContent>("ContentSerializer");
        }
Пример #25
0
        /// <summary>
        ///  Handler constrcutor Loaded via DI
        /// </summary>
        public ContentTemplateHandler(
            ILogger <ContentTemplateHandler> logger,
            IEntityService entityService,
            IContentService contentService,
            AppCaches appCaches,
            IShortStringHelper shortStringHelper,
            SyncFileService syncFileService,
            uSyncEventService mutexService,
            uSyncConfigService uSyncConfigService,
            ISyncItemFactory syncItemFactory)
            : base(logger, entityService, appCaches, shortStringHelper, syncFileService, mutexService, uSyncConfigService, syncItemFactory)
        {
            this.contentService = contentService;

            // make sure we load up the template serializer - because we need that one, not the normal content one.
            this.serializer = syncItemFactory.GetSerializer <IContent>("contentTemplateSerializer");
        }