Ejemplo n.º 1
0
 public static void AsFactory <TFactory>(this IActivityBranchBuilder builder) where TFactory : class, IStateFactory
 {
     builder.AsFactory(typeof(TFactory));
 }
Ejemplo n.º 2
0
 public static void AsFactory(this IActivityBranchBuilder builder, Func <State, IEnumerable <State> > stateFactory)
 {
     builder.AsFactory(StateFactories.New(stateFactory));
 }