示例#1
0
        public void Handle(NewImageAdded message)
        {
            var originalAsset = _fileRepository.ReadImage(message.ImageName);

            var thumbnailLocation = Generate(originalAsset);

            AddDerivate(message, thumbnailLocation);
        }
示例#2
0
 public override StoredAsset Load()
 {
     try
     {
         return(_repository.ReadImage(_storageName));
     }
     catch (System.Exception)
     {
         return(null);
     }
 }