Example #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;
        }
Example #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"));
        }