Example #1
0
 public static void AsFactory <TFactory>(this IActivityFactorableBuilder builder) where TFactory : class, IStateFactory
 {
     builder.AsFactory(typeof(TFactory));
 }
Example #2
0
 public static void AsFactory(this IActivityFactorableBuilder builder, Func <State, IEnumerable <State> > factory)
 {
     builder.AsFactory(StateFactories.New(factory));
 }