public BookViewModel(Book book, IThumbnailCacheService thumbnailCacheService, IFileService fileService) { _id = book.Id; _path = book.Path; Name = Path.GetFileNameWithoutExtension(book.Path); _thumbnailCacheService = thumbnailCacheService; _fileService = fileService; }
public GridSettingsViewModel(IThumbnailCacheService thumbnailCacheService, IDataService dataService, IEventAggregator eventAggregator, ITaskSchedulerService taskSchedulerService) { GenerateCacheCommand = new DelegateCommand(GenerateCachesExecute); _thumbnailCacheService = thumbnailCacheService; _dataService = dataService; _eventAggregator = eventAggregator; _taskSchedulerService = taskSchedulerService; }
public CenterGridViewModel(IEventAggregator eventAggregator, IDataService dataService, IThumbnailCacheService thumbnailCacheService, IFileService fileService) { _eventAggregator = eventAggregator; _dataService = dataService; _thumbnailCacheService = thumbnailCacheService; _fileService = fileService; _eventAggregator.GetEvent <PostCachesUpdatedEvent>().Subscribe(UpdateThumbnails); UpdateThumbnails(); }
public ThumbnailController(IThumbnailCacheService thumbnailCacheService, IContentTypeProvider contentTypeProvider) { _thumbnailCacheService = thumbnailCacheService; _contentTypeProvider = contentTypeProvider; }