private void ExecuteExitAction(IActionHolder actionHolder, ITransitionContext <TState, TEvent> context) { try { actionHolder.Execute(context.EventArgument); } catch (Exception exception) { this.HandleExitActionException(context, exception); } }
private void ExecuteExitAction(IActionHolder actionHolder, IStateContext <TState, TEvent> stateContext) { try { actionHolder.Execute(); } catch (Exception exception) { this.HandleExitActionException(stateContext, exception); } }
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); } }
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); } }