public MediaServiceFileSystemAdapter(
     IMediaService mediaService,
     IFolderService folderService,
     MediaHelper mediaHelper,
     MediaExceptionFactory exceptionFactory)
 {
     _mediaService     = mediaService;
     _folderService    = folderService;
     _mediaHelper      = mediaHelper;
     _storageProvider  = mediaService.StorageProvider;
     _exceptionFactory = exceptionFactory;
     _mediaRootPath    = MediaFileSystem.GetMediaPublicPath();
 }
示例#2
0
 static PictureService()
 {
     _processedImagesRootPath = MediaFileSystem.GetMediaPublicPath() + "image/";
     _fallbackImagesRootPath  = "content/images/";
 }
示例#3
0
 static MediaUrlGenerator()
 {
     _processedImagesRootPath = MediaFileSystem.GetMediaPublicPath();
     _fallbackImagesRootPath  = "content/images/";
 }