示例#1
0
 private void ExecuteExitAction(IActionHolder actionHolder, ITransitionContext <TState, TEvent> context)
 {
     try
     {
         actionHolder.Execute(context.EventArgument);
     }
     catch (Exception exception)
     {
         this.HandleExitActionException(context, exception);
     }
 }
示例#2
0
 private void ExecuteExitAction(IActionHolder actionHolder, IStateContext <TState, TEvent> stateContext)
 {
     try
     {
         actionHolder.Execute();
     }
     catch (Exception exception)
     {
         this.HandleExitActionException(stateContext, exception);
     }
 }
示例#3
0
 private void ExecuteEntryAction(
     IStateDefinition <TState, TEvent> stateDefinition,
     IActionHolder actionHolder,
     ITransitionContext <TState, TEvent> context)
 {
     try
     {
         actionHolder.Execute(context.EventArgument);
     }
     catch (Exception exception)
     {
         this.HandleEntryActionException(stateDefinition, context, exception);
     }
 }
示例#4
0
 private async Task ExecuteExitAction(
     IStateDefinition <TState, TEvent> stateDefinition,
     IActionHolder actionHolder,
     ITransitionContext <TState, TEvent> context)
 {
     try
     {
         await actionHolder
         .Execute(context.EventArgument)
         .ConfigureAwait(false);
     }
     catch (Exception exception)
     {
         await this.HandleExitActionException(stateDefinition, context, exception)
         .ConfigureAwait(false);
     }
 }