Пример #1
0
        public BehaviorGraph()
        {
            _settings = new SettingsCollection(null);
            _settings.Replace(SessionStateRequirement.RequiresSessionState);

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

            TypeResolver = new TypeResolver();
            _services.AddService <ITypeResolver>(TypeResolver);
        }
Пример #2
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
        }
Пример #3
0
 void IServiceGraphAlteration.Alter(ServiceGraph graph)
 {
     graph.AddService(typeof(IActivator), _objectDef);
 }