Ejemplo n.º 1
0
 public MediaService(
     SmartDbContext db,
     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)
 {
     _db                     = db;
     _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;
 }
Ejemplo n.º 2
0
 public MediaServiceFileSystemAdapter(
     IMediaService mediaService,
     IMediaSearcher mediaSearcher,
     IFolderService folderService,
     IMediaStorageConfiguration storageConfig,
     MediaHelper mediaHelper,
     MediaExceptionFactory exceptionFactory)
 {
     _mediaService        = mediaService;
     _mediaSearcher       = mediaSearcher;
     _folderService       = folderService;
     _mediaHelper         = mediaHelper;
     _storageProvider     = mediaService.StorageProvider;
     _exceptionFactory    = exceptionFactory;
     _mediaRootPath       = storageConfig.PublicPath;
     StorageConfiguration = storageConfig;
 }
 public MaxMediaFileSizeFilter(MediaSettings mediaSettings, MediaExceptionFactory exceptionFactory)
 {
     _mediaSettings    = mediaSettings;
     _exceptionFactory = exceptionFactory;
 }
Ejemplo n.º 4
0
 protected ImageHandlerBase(IImageCache imageCache, MediaExceptionFactory exceptionFactory)
 {
     ImageCache       = imageCache;
     ExceptionFactory = exceptionFactory;
 }
Ejemplo n.º 5
0
 public ImageHandler(IImageProcessor imageProcessor, IImageCache imageCache, MediaExceptionFactory exceptionFactory)
     : base(imageCache, exceptionFactory)
 {
     _imageProcessor = imageProcessor;
 }