コード例 #1
0
ファイル: BehaviorGraph.cs プロジェクト: zzekikaya/fubumvc
        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());
        }
コード例 #2
0
        public static BehaviorGraph BuildFrom(Action <FubuRegistry> configure)
        {
            var registry = new FubuRegistry();

            configure(registry);

            return(BehaviorGraphBuilder.Build(registry));
        }
コード例 #3
0
ファイル: BehaviorGraph.cs プロジェクト: zzekikaya/fubumvc
 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());
 }
コード例 #4
0
 public static BehaviorGraph BuildFrom <T>() where T : FubuRegistry, new()
 {
     return(BehaviorGraphBuilder.Build(new T()));
 }
コード例 #5
0
 public static BehaviorGraph BuildFrom(FubuRegistry registry)
 {
     return(BehaviorGraphBuilder.Build(registry));
 }