public PublishCli(ISelectorStorage storageSelector, IPublishPreflight publishPreflight, IWebHtmlPublishService publishService, AppSettings appSettings, IConsole console) { _publishPreflight = publishPreflight; _publishService = publishService; _appSettings = appSettings; _console = console; _argsHelper = new ArgsHelper(appSettings, console); _hostFileSystemStorage = storageSelector.Get(SelectorStorage.StorageServices.HostFilesystem); _subPathStorage = storageSelector.Get(SelectorStorage.StorageServices.SubPath); }
public PublishController(AppSettings appSettings, IPublishPreflight publishPreflight, IWebHtmlPublishService publishService, IMetaInfo metaInfo, ISelectorStorage selectorStorage, IUpdateBackgroundTaskQueue queue, IWebLogger webLogger) { _appSettings = appSettings; _publishPreflight = publishPreflight; _publishService = publishService; _metaInfo = metaInfo; _hostStorage = selectorStorage.Get(SelectorStorage.StorageServices.HostFilesystem); _bgTaskQueue = queue; _webLogger = webLogger; }
public WebHtmlPublishService(IPublishPreflight publishPreflight, ISelectorStorage selectorStorage, AppSettings appSettings, IExifToolHostStorage exifTool, IOverlayImage overlayImage, IConsole console, IWebLogger logger) { _publishPreflight = publishPreflight; _subPathStorage = selectorStorage.Get(SelectorStorage.StorageServices.SubPath); _thumbnailStorage = selectorStorage.Get(SelectorStorage.StorageServices.Thumbnail); _hostFileSystemStorage = selectorStorage.Get(SelectorStorage.StorageServices.HostFilesystem); _appSettings = appSettings; _exifTool = exifTool; _console = console; _overlayImage = overlayImage; _publishManifest = new PublishManifest(_hostFileSystemStorage, new PlainTextFileHelper()); _toCreateSubfolder = new ToCreateSubfolder(_hostFileSystemStorage); _copyPublishedContent = new CopyPublishedContent(_appSettings, _toCreateSubfolder, selectorStorage); _logger = logger; _thumbnailService = new Thumbnail(_subPathStorage, _thumbnailStorage, _logger); }