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); }
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 }
void IServiceGraphAlteration.Alter(ServiceGraph graph) { graph.AddService(typeof(IActivator), _objectDef); }