public StateBuilder <TState, TParentBuilder> Event <TArgs>(string id, Action <TState, TArgs> action) where TArgs : EventArgs { ContractState.AddEvent(id, args => action(ContractState, (TArgs)args)); return(this); }
public StateBuilder <TState, TParentBuilder> Event(string id, Action <TState, EventArgs> action) { ContractState.AddEvent(id, args => action(ContractState, args)); return(this); }