예제 #1
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;
        }
예제 #2
0
        public StaticSiteService(
            IScopeProvider scopeProvider,
            IUmbracoContextFactory umbracoContextFactory,
            TemplateFileService templateFileService,
            uSyncMediaFileService mediaFileService,
            IGlobalSettings globalSettings
            )
        {
            _scopeProvider         = scopeProvider;
            _umbracoContextFactory = umbracoContextFactory;
            _templateFileService   = templateFileService;
            _mediaFileService      = mediaFileService;

            _syncRoot = Path.GetFullPath(Path.Combine(globalSettings.LocalTempPath, "uSync", "pack"));
        }
예제 #3
0
 public FolderDeployer(TemplateFileService templateFileService) : base(templateFileService)
 {
 }
예제 #4
0
 public StaticFolderDeployer(TemplateFileService templateFileService)
 {
     this.templateFileService = templateFileService;
 }