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. }
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 }
public void Alter(SettingsCollection settings) { settings.Replace(_settings); }
public SettingsCollection(SettingsCollection parent) { _settings.OnMissing = buildDefault; _parent = parent; }
private BehaviorGraph(BehaviorGraph parent) : this() { _settings = new SettingsCollection(parent._settings); }
public void Alter(SettingsCollection settings) { settings.Alter(_alteration); }
public void Apply(SettingsCollection settings, FubuRegistry registry) { settings.Get <T>().As <IFeatureSettings>().Apply(registry); }
public Task ApplyAll(SettingsCollection settings, FubuRegistry registry) { return (_types.ContinueWith( t => { t.Result.Each(type => settings.Get(type).As <IFeatureSettings>().Apply(registry)); })); }
public BehaviorGraph(SettingsCollection settings) { _settings = settings; Routes = new RouteCollection(this); }
public BehaviorGraph(SettingsCollection parent) : this() { _settings = new SettingsCollection(parent); }