Exemple #1
0
 public MediaService(
     IRepository <MediaFile> fileRepo,
     IFolderService folderService,
     IMediaSearcher searcher,
     IMediaTypeResolver typeResolver,
     IMediaUrlGenerator urlGenerator,
     IEventPublisher eventPublisher,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService,
     MediaSettings mediaSettings,
     IImageProcessor imageProcessor,
     IImageCache imageCache,
     MediaExceptionFactory exceptionFactory,
     Func <IMediaStorageProvider> storageProvider,
     MediaHelper helper)
 {
     _fileRepo               = fileRepo;
     _folderService          = folderService;
     _searcher               = searcher;
     _typeResolver           = typeResolver;
     _urlGenerator           = urlGenerator;
     _eventPublisher         = eventPublisher;
     _languageService        = languageService;
     _localizedEntityService = localizedEntityService;
     _mediaSettings          = mediaSettings;
     _imageProcessor         = imageProcessor;
     _imageCache             = imageCache;
     _exceptionFactory       = exceptionFactory;
     _storageProvider        = storageProvider();
     _helper = helper;
 }
 public MediaServiceFileSystemAdapter(
     IMediaService mediaService,
     IFolderService folderService,
     MediaHelper mediaHelper,
     MediaExceptionFactory exceptionFactory)
 {
     _mediaService     = mediaService;
     _folderService    = folderService;
     _mediaHelper      = mediaHelper;
     _storageProvider  = mediaService.StorageProvider;
     _exceptionFactory = exceptionFactory;
     _mediaRootPath    = MediaFileSystem.GetMediaPublicPath();
 }
 protected ImageHandlerBase(IImageCache imageCache, MediaExceptionFactory exceptionFactory)
 {
     ImageCache       = imageCache;
     ExceptionFactory = exceptionFactory;
 }
Exemple #4
0
 public ImageHandler(IImageProcessor imageProcessor, IImageCache imageCache, MediaExceptionFactory exceptionFactory)
     : base(imageCache, exceptionFactory)
 {
     _imageProcessor = imageProcessor;
 }