public static PipelineStepResult Success(PipelineStepResultMetadata metadata) { return(new PipelineStepResult { Successful = true, StepName = metadata.StepName, Message = metadata.Message }); }
public static PipelineStepResult Failure(PipelineStepResultMetadata metadata, Exception exception) { return(new PipelineStepResult { Successful = false, StepName = metadata.StepName, Message = metadata.Message ?? exception.Message, FailureDetails = new PipelineStepErrorDetails { Exception = exception, Message = exception.Message } }); }