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