public ExtensibleStaticPublisher(
     uSyncPublisherConfig config,
     IProfilingLogger logger,
     IGlobalSettings settings,
     uSyncOutgoingService outgoingService,
     uSyncIncomingService incomingService,
     IStaticSiteService staticSiteService,
     IContentService contentService,
     SyncFileService syncFileService,
     IEnumerable <IStaticSitePublisherExtension> staticSitePublisherExtensions,
     IPublisherSearchConfigs publisherSearchConfigs)
     : base(config, logger, settings, incomingService)
 {
     _outgoingService               = outgoingService;
     _staticSiteService             = staticSiteService;
     _contentService                = contentService;
     _syncFileService               = syncFileService;
     _publisherSearchConfigs        = publisherSearchConfigs;
     _staticSitePublisherExtensions = (staticSitePublisherExtensions?.ToList() ?? new List <IStaticSitePublisherExtension>()).ToDictionary(e => e, e => (object)null);
     _syncRoot = Path.Combine(settings.LocalTempPath, "uSync", "pack");
     Actions   = new Dictionary <PublishMode, IEnumerable <SyncPublisherAction> >()
     {
         {
             PublishMode.Push,
             PushActions
         }
     };
 }
Beispiel #2
0
        public uSyncStaticSiteService(UmbracoHelper helper,
                                      IEntityService entityService,
                                      IContentService contentService,
                                      SyncFileService syncFileService,
                                      uSyncMediaFileService mediaFileService,
                                      TemplateFileService templateFileService,
                                      IUmbracoContextFactory contextFactory,
                                      IProfilingLogger logger,
                                      uSyncPublisherConfig config,
                                      SyncStaticDeployerCollection deployers,
                                      IGlobalSettings settings)
        {
            this.helper        = helper;
            this.entityService = entityService;

            this.syncFileService     = syncFileService;
            this.mediaFileService    = mediaFileService;
            this.templateFileService = templateFileService;

            this.contentService = contentService;
            this.contextFactory = contextFactory;

            this.syncRoot   = Path.GetFullPath(Path.Combine(settings.LocalTempPath, "uSync", "pack"));
            this.configFile = Path.Combine(Umbraco.Core.IO.SystemDirectories.Config + "/uSync.Publish.config");

            this.deployers = deployers;

            this.logger = logger;
        }
Beispiel #3
0
 protected SyncHandlerTreeBase(
     IEntityService entityService,
     IProfilingLogger logger,
     ISyncSerializer <TObject> serializer,
     ISyncTracker <TObject> tracker,
     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, syncFileService)
 {
 }
Beispiel #4
0
 public MacroHandler(IEntityService entityService,
                     IProfilingLogger logger,
                     IMacroService macroService,
                     ISyncSerializer <IMacro> serializer,
                     ISyncTracker <IMacro> tracker,
                     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, syncFileService)
 {
     this.macroService = macroService;
 }
Beispiel #5
0
 public DictionaryHandler(IEntityService entityService,
                          IProfilingLogger logger,
                          ILocalizationService localizationService,
                          ISyncSerializer <IDictionaryItem> serializer,
                          ISyncTracker <IDictionaryItem> tracker,
                          SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, syncFileService)
 {
     this.localizationService = localizationService;
 }
Beispiel #6
0
 protected SyncHandlerLevelBase(
     IEntityService entityService,
     IProfilingLogger logger,
     ISyncSerializer <TObject> serializer,
     ISyncTracker <TObject> tracker,
     AppCaches appCaches,
     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, appCaches, syncFileService)
 {
 }
 protected ContentHandlerBase(
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <TObject> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
 }
 public SyncHandlerBase(
     IEntityService entityService,
     IProfilingLogger logger,
     ISyncSerializer <TObject> serializer,
     ISyncTracker <TObject> tracker,
     AppCaches appCaches,
     SyncFileService syncFileService)
     : this(entityService, logger, serializer, tracker, appCaches, null, syncFileService)
 {
 }
Beispiel #9
0
 public DomainHandler(IEntityService entityService,
                      IProfilingLogger logger,
                      IDomainService domainService,
                      ISyncSerializer <IDomain> serializer,
                      ISyncTracker <IDomain> tracker,
                      SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, syncFileService)
 {
     this.domainService = domainService;
 }
Beispiel #10
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;
 }
Beispiel #11
0
        public HistoryComponent(SyncFileService syncFileService,
                                IUmbracoContextFactory umbracoContextFactory,
                                IGlobalSettings globalSettings)
        {
            this.umbracoContextFactory = umbracoContextFactory;

            this.syncFileService = syncFileService;
            historyFolder        = Path.Combine(globalSettings.LocalTempPath, "usync", "history");

            uSyncService.ImportComplete += USyncService_ImportComplete;
        }
 protected SyncHandlerContainerBase(
     IEntityService entityService,
     IProfilingLogger logger,
     ISyncSerializer <TObject> serializer,
     ISyncTracker <TObject> tracker,
     AppCaches appCaches,
     ISyncDependencyChecker <TObject> checker,
     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, appCaches, checker, syncFileService)
 {
 }
 protected DictionaryHandler(IEntityService entityService,
                             IProfilingLogger logger,
                             ILocalizationService localizationService,
                             ISyncSerializer <IDictionaryItem> serializer,
                             ISyncTracker <IDictionaryItem> tracker,
                             AppCaches appCaches,
                             ISyncDependencyChecker <IDictionaryItem> checker,
                             SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, appCaches, checker, syncFileService)
 {
     this.localizationService = localizationService;
 }
 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;
 }
Beispiel #15
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;
 }
 public ContentTemplateHandler(
     IEntityService entityService,
     IProfilingLogger logger,
     IContentService contentService,
     ContentTemplateSerializer serializer, // concreate because we want to make sure we get the blueprint one.
     ISyncTracker <IContent> tracker,
     AppCaches appCaches,
     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, appCaches, syncFileService)
 {
     this.contentService = contentService;
 }
Beispiel #17
0
 public MediaHandler(
     IEntityService entityService,
     IProfilingLogger logger,
     IMediaService mediaService,
     ISyncSerializer <IMedia> serializer,
     ISyncTracker <IMedia> tracker,
     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, syncFileService)
 {
     this.mediaService   = mediaService;
     this.itemObjectType = UmbracoObjectTypes.Media;
 }
 /// <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;
 }
Beispiel #19
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;
 }
Beispiel #20
0
 protected DomainHandler(IEntityService entityService,
                         IProfilingLogger logger,
                         IDomainService domainService,
                         ISyncSerializer <IDomain> serializer,
                         ISyncTracker <IDomain> tracker,
                         AppCaches appCaches,
                         ISyncDependencyChecker <IDomain> checker,
                         SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, appCaches, checker, syncFileService)
 {
     this.domainService = domainService;
 }
Beispiel #21
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;
 }
Beispiel #22
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;
 }
Beispiel #23
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;
 }
Beispiel #24
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;
 }
Beispiel #25
0
 public ContentTemplateHandler(
     IEntityService entityService,
     IProfilingLogger logger,
     IContentService contentService,
     ContentTemplateSerializer serializer, // concreate because we want to make sure we get the blueprint one.
     ISyncTracker <IContent> tracker,
     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, syncFileService)
 {
     this.contentService = contentService;
     this.itemObjectType = UmbracoObjectTypes.DocumentBlueprint;
 }
Beispiel #26
0
 public MacroHandler(IEntityService entityService,
                     IProfilingLogger logger,
                     IMacroService macroService,
                     ISyncSerializer <IMacro> serializer,
                     ISyncTracker <IMacro> tracker,
                     AppCaches appCaches,
                     ISyncDependencyChecker <IMacro> checker,
                     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, appCaches, checker, syncFileService)
 {
     this.macroService = macroService;
 }
Beispiel #27
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)
 {
 }
Beispiel #28
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;
 }
 protected MemberTypeHandler(
     IEntityService entityService,
     IProfilingLogger logger,
     IMemberTypeService memberTypeService,
     ISyncSerializer <IMemberType> serializer,
     ISyncTracker <IMemberType> tracker,
     AppCaches appCaches,
     ISyncDependencyChecker <IMemberType> checker,
     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, appCaches, checker, syncFileService)
 {
     this.memberTypeService = memberTypeService;
 }
 public ContentTypeHandler(
     IEntityService entityService,
     IProfilingLogger logger,
     IContentTypeService contentTypeService,
     ISyncSerializer <IContentType> serializer,
     ISyncTracker <IContentType> tracker,
     AppCaches appCaches,
     ISyncDependencyChecker <IContentType> checker,
     SyncFileService fileService)
     : base(entityService, logger, serializer, tracker, appCaches, checker, fileService)
 {
     this.contentTypeService = contentTypeService;
 }