Exemple #1
0
 public IStateLens <TState, TFeatureState> On <TAction>(Func <TFeatureState, TFeatureState> featureReducer) where TAction : class
 {
     _ons.Add(
         CreateParentReducer(Reducers.On <TAction, TFeatureState>(featureReducer))
         );
     return(this);
 }
Exemple #2
0
 public IStateLens <TState, TFeatureState> On <TAction1, TAction2, TAction3, TAction4>(Func <TFeatureState, TFeatureState> featureReducer)
     where TAction1 : class
     where TAction2 : class
     where TAction3 : class
     where TAction4 : class
 {
     _ons.Add(
         CreateParentReducer(Reducers.On <TAction1, TAction2, TAction3, TAction4, TFeatureState>(featureReducer))
         );
     return(this);
 }