public void Handle(NewImageAdded message) { var originalAsset = _fileRepository.ReadImage(message.ImageName); var thumbnailLocation = Generate(originalAsset); AddDerivate(message, thumbnailLocation); }
public override StoredAsset Load() { try { return(_repository.ReadImage(_storageName)); } catch (System.Exception) { return(null); } }