This repository was archived by the owner on Dec 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-12
lines changed Expand file tree Collapse file tree 1 file changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ protected override T RunWithReturn(bool success)
306
306
catch ( Exception ex )
307
307
{
308
308
if ( ! RaiseFaultHandlers ( ex ) )
309
- throw ex ;
309
+ throw ;
310
310
}
311
311
finally
312
312
{
@@ -420,19 +420,28 @@ protected override List<T> RunWithReturn(bool success)
420
420
RaiseOnStart ,
421
421
( ) =>
422
422
{
423
- if ( outputProcessor != null )
424
- result = outputProcessor . Result ;
425
- if ( result == null )
426
- result = new List < T > ( ) ;
427
-
428
- RaiseOnEnd ( result ) ;
429
-
430
- if ( Errors != null )
423
+ try
431
424
{
432
- OnErrorData ? . Invoke ( Errors ) ;
433
- thrownException = thrownException ?? new ProcessException ( this ) ;
434
- if ( ! RaiseFaultHandlers ( thrownException ) )
425
+ if ( outputProcessor != null )
426
+ result = outputProcessor . Result ;
427
+ if ( result == null )
428
+ result = new List < T > ( ) ;
429
+
430
+ if ( Errors != null )
431
+ {
432
+ OnErrorData ? . Invoke ( Errors ) ;
433
+ thrownException = thrownException ?? new ProcessException ( this ) ;
435
434
throw thrownException ;
435
+ }
436
+ }
437
+ catch ( Exception ex )
438
+ {
439
+ if ( ! RaiseFaultHandlers ( ex ) )
440
+ throw ;
441
+ }
442
+ finally
443
+ {
444
+ RaiseOnEnd ( result ) ;
436
445
}
437
446
} ,
438
447
( ex , error ) =>
You can’t perform that action at this time.
0 commit comments