Exemplo n.º 1
0
        public static BehaviorGraph BuildFrom(Action<FubuRegistry> configure, IPerfTimer timer = null)
        {
            var registry = new FubuRegistry();
            configure(registry);

            return BehaviorGraphBuilder.Build(registry, timer ?? new PerfTimer(), new Assembly[0], new ActivationDiagnostics(), FubuApplicationFiles.ForDefault());
        }
Exemplo n.º 2
0
        public static BehaviorGraph BuildFrom(Action <FubuRegistry> configure)
        {
            var registry = new FubuRegistry();

            configure(registry);

            return(BehaviorGraphBuilder.Build(registry));
        }
Exemplo n.º 3
0
 public static BehaviorGraph BuildFrom<T>(IPerfTimer timer = null) where T : FubuRegistry, new()
 {
     return BehaviorGraphBuilder.Build(new T(), timer ?? new PerfTimer(), new Assembly[0], new ActivationDiagnostics(), FubuApplicationFiles.ForDefault());
 }
Exemplo n.º 4
0
 public static BehaviorGraph BuildFrom <T>() where T : FubuRegistry, new()
 {
     return(BehaviorGraphBuilder.Build(new T()));
 }
Exemplo n.º 5
0
 public static BehaviorGraph BuildFrom(FubuRegistry registry)
 {
     return(BehaviorGraphBuilder.Build(registry));
 }