Exemplo n.º 1
0
        public BehaviorGraph()
        {
            _settings = new SettingsCollection(null);
            _settings.Replace(SessionStateRequirement.RequiresSessionState);
            _settings.Replace <IFubuApplicationFiles>(new FubuApplicationFiles());

            RouteIterator = new SortByRouteRankIterator(); // can override in a registry

            TypeResolver = new TypeResolver();
            _services.AddService <ITypeResolver>(TypeResolver);
        }
Exemplo n.º 2
0
        private BehaviorGraph(BehaviorGraph parent) : this()
        {
            _settings = new SettingsCollection(parent._settings);

            // TODO -- use another [IsolatedLevel] attribute on Settings for this
            _settings.Replace(new RouteDefinitionResolver()); // you absolutely have to do this, or you'll get the sources from the parent too.
        }
Exemplo n.º 3
0
        public BehaviorGraph()
        {
            _log = new ConfigLog(this);

            _settings = new SettingsCollection(null);
            _settings.Replace(SessionStateRequirement.RequiresSessionState);

            RouteIterator = new SortByRouteRankIterator(); // can override in a registry

            TypeResolver = new TypeResolver();
            _services.AddService <ITypeResolver>(TypeResolver);

            Types = new TypePool(null); // need a default for some tests
        }
Exemplo n.º 4
0
        public BehaviorGraph()
        {
            _log = new ConfigLog(this);

            _settings = new SettingsCollection(null);
            _settings.Replace(SessionStateRequirement.RequiresSessionState);

            Settings.Replace(ViewBag.Empty());

            RouteIterator = new SortByRouteRankIterator(); // can override in a registry

            TypeResolver = new TypeResolver();
            _services.AddService <ITypeResolver>(TypeResolver);
        }
Exemplo n.º 5
0
 public void Alter(SettingsCollection settings)
 {
     settings.Replace(_settings);
 }
Exemplo n.º 6
0
        public BehaviorGraph() : this(new SettingsCollection())
        {
            _settings.Replace(SessionStateRequirement.RequiresSessionState);

        }