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