public StateBuilder <TState, TParentBuilder> OnExit(Action <TState> action) { ContractState.SetExitAction(() => action(ContractState)); return(this); }