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
         }
     };
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
 protected SyncHandlerTreeBase(
     IEntityService entityService,
     IProfilingLogger logger,
     ISyncSerializer <TObject> serializer,
     ISyncTracker <TObject> tracker,
     SyncFileService syncFileService)
     : base(entityService, logger, serializer, tracker, syncFileService)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 7
0
 protected ContentHandlerBase(
     IEntityService entityService,
     IProfilingLogger logger,
     AppCaches appCaches,
     ISyncSerializer <TObject> serializer,
     ISyncItemFactory syncItemFactory,
     SyncFileService syncFileService)
     : base(entityService, logger, appCaches, serializer, syncItemFactory, syncFileService)
 {
 }
Ejemplo n.º 8
0
 public SyncHandlerBase(
     IEntityService entityService,
     IProfilingLogger logger,
     ISyncSerializer <TObject> serializer,
     ISyncTracker <TObject> tracker,
     AppCaches appCaches,
     SyncFileService syncFileService)
     : this(entityService, logger, serializer, tracker, appCaches, null, syncFileService)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 13
0
 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;
 }
Ejemplo n.º 14
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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 18
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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 29
0
 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;
 }