public async Task <PipelineProcessingResult> Process(IPipelineContext context) { var imageLocalPath = diskService.GetTempFilePath(); try { await networkService.DownloadFile(context.MerchantDetails.Values["img"].Value, imageLocalPath); } catch (WebException) { return(PipelineProcessingResult.Failure($"Unable to download image at `{context.MerchantDetails.Values["img"].Value}`.")); } context.Data.Add("ImageLocalPath", imageLocalPath); return(PipelineProcessingResult.Success()); }