示例#1
0
 public ContentFilesRuntimeCacheItemProvider(
     IMediaPathResolver mediaPathResolver,
     IOptions <PwaContentFilesPreCacheOptions> optionsAccessor
     )
 {
     _mediaPathResolver = mediaPathResolver;
     _options           = optionsAccessor.Value;
 }
示例#2
0
 public SiteFileSystemMediaProcessor(
     IMediaPathResolver mediaPathResolver,
     ILogger <FileSystemMediaProcessor> logger,
     IHostingEnvironment env
     ) : base(logger, env)
 {
     this.mediaPathResolver = mediaPathResolver;
 }
示例#3
0
 public SiteFileSystemMediaProcessor(
     SiteContext currentSite,
     IMediaPathResolver mediaPathResolver,
     ILogger <FileSystemMediaProcessor> logger,
     IHostingEnvironment env
     ) : base(logger, env)
 {
     _currentSite       = currentSite;
     _mediaPathResolver = mediaPathResolver;
 }
示例#4
0
 public FileManagerService(
     IMediaPathResolver mediaPathResolver,
     IImageResizer imageResizer,
     IFileManagerNameRules fileManagerNameRules,
     IStringLocalizer <FileManagerStringResources> stringLocalizer,
     IOptions <FileManagerIcons> iconsAccessor,
     ILogger <FileManagerService> logger
     )
 {
     _mediaPathResolver = mediaPathResolver;
     _imageResizer      = imageResizer;
     _nameRules         = fileManagerNameRules;
     _icons             = iconsAccessor.Value;
     _sr  = stringLocalizer;
     _log = logger;
 }
 public FileManagerService(
     IMediaPathResolver mediaPathResolver,
     IImageResizer imageResizer,
     IFileManagerNameRules fileManagerNameRules,
     IStringLocalizer <FileManagerStringResources> stringLocalizer,
     //IEnumerable<IHandleFilesUploaded> uploadHandlers,
     IOptions <FileManagerIcons> iconsAccessor,
     ILogger <FileManagerService> logger
     )
 {
     _mediaPathResolver = mediaPathResolver;
     _imageResizer      = imageResizer;
     _nameRules         = fileManagerNameRules;
     //_uploadHandlers = uploadHandlers;
     _icons = iconsAccessor.Value;
     _sr    = stringLocalizer;
     _log   = logger;
 }