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