예제 #1
0
 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);
 }
예제 #2
0
 public StateBuilder <TState, TParentBuilder> Event(string id, Action <TState, EventArgs> action)
 {
     ContractState.AddEvent(id, args => action(ContractState, args));
     return(this);
 }