Пример #1
0
 public static IStateMachineProvider <TContext, TStateId, TStatefulTask> CatchExceptions <TContext, TStateId, TStatefulTask>(
     this IStateMachineProvider <TContext, TStateId, TStatefulTask> provider,
     Action <Exception>?handler)
     where TStatefulTask : class, IStatefulTask <TContext, TStateId>
 {
     return(provider.CatchExceptions(continueExecutionOnFailed: false, handler));
 }
Пример #2
0
 public static IStateMachineProvider <TContext, TStateId, TStatefulTask> CatchExceptions <TContext, TStateId, TStatefulTask>(
     this IStateMachineProvider <TContext, TStateId, TStatefulTask> provider,
     bool continueExecutionOnFailed)
     where TStatefulTask : class, IStatefulTask <TContext, TStateId>
 {
     return(provider.CatchExceptions(continueExecutionOnFailed, handler: null));
 }