void IRegisterable.Register(Action <Type, ObjectDef> action) { /* * 1.) Loop through each service * 2.) Loop through each top level behavior for routes * 3.) Loop through each partial behavior * 4.) add in the UrlRegistry as a value */ _services.Each(action); _behaviors.OfType <IRegisterable>().Each(chain => chain.Register(action)); action(typeof(BehaviorGraph), new ObjectDef { Value = this }); }