コード例 #1
0
        public MediaCoverService(IMediaCoverProxy mediaCoverProxy,
                                 IImageResizer resizer,
                                 IHttpClient httpClient,
                                 IDiskProvider diskProvider,
                                 IAppFolderInfo appFolderInfo,
                                 ICoverExistsSpecification coverExistsSpecification,
                                 IConfigFileProvider configFileProvider,
                                 IEventAggregator eventAggregator,
                                 Logger logger)
        {
            _mediaCoverProxy          = mediaCoverProxy;
            _resizer                  = resizer;
            _httpClient               = httpClient;
            _diskProvider             = diskProvider;
            _coverExistsSpecification = coverExistsSpecification;
            _configFileProvider       = configFileProvider;
            _eventAggregator          = eventAggregator;
            _logger = logger;

            _coverRootFolder = appFolderInfo.GetMediaCoverPath();
        }
コード例 #2
0
 public MediaCoverProxyMapper(IMediaCoverProxy mediaCoverProxy)
 {
     _mediaCoverProxy = mediaCoverProxy;
 }
コード例 #3
0
 public MediaCoverProxyMapper(IMediaCoverProxy mediaCoverProxy)
 {
     _mediaCoverProxy  = mediaCoverProxy;
     _mimeTypeProvider = new FileExtensionContentTypeProvider();
 }