public IPipeServiceExecution <TransformTextPipeModel> CreatePipe() { return(_pipeService.Add(() => new TrimTextStep()) .Add(() => new ToUppercaseStep()) .Add(() => new AddExclamationMarkStep()) .AddErrorStep(() => new SendEmailNotificationErrorStep())); }
public IPipeServiceExecution <TranslateTextPipeModel> CreatePipe() { return(_pipeService.Add(() => new DeserializeTranslateTextRequestStep()) .Add(() => new TranslateHeaderStep()) .Add(() => new TranslateBodyStep()) .Add(() => new TranslateFooterStep()) .Add(() => new SavePendingTranslation()) .Add(() => new PrepareApprovalTextRequestStep(_configuration)) .Add(() => new DeserializeApprovalTextResponseStep()) .Add(() => new SaveTranslatonApproval())); }