Ejemplo n.º 1
0
 public static PipelineStepResult Success(PipelineStepResultMetadata metadata)
 {
     return(new PipelineStepResult
     {
         Successful = true,
         StepName = metadata.StepName,
         Message = metadata.Message
     });
 }
Ejemplo n.º 2
0
 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
         }
     });
 }