Esempio n. 1
0
 /// <summary>
 /// Handles the exceptions that may be thrown during process workflow and returns a corresponding failure result
 /// </summary>
 /// <param name="e">The exception raised during process execution</param>
 /// <returns>A failed process execution result, modelling the caught error</returns>
 protected virtual ProcessResult OnHandleException(Exception e)
 {
     return(ProcessResult.Fail(ProcessingErrorCodes.UnspecifiedError));
 }
Esempio n. 2
0
 /// <summary>
 /// Does any post-processing work and returns the post-processing result
 /// </summary>
 /// <returns>The process post-processing result</returns>
 protected virtual ProcessResult OnPostProcessing()
 {
     return(ProcessResult.Success());
 }