public void RegisterServices(string mode, IContainer container, BehaviorGraph graph) { graph.Settings.Register(ApplicationServices); container.Configure(_ => { DefaultServices(mode).Each(_.AddRegistry); AllServiceRegistrations().Each(_.AddRegistry); _.AddRegistry(ApplicationServices); _.For<BehaviorGraph>().Use(graph); _.AddRegistry(graph.ToStructureMapRegistry()); }); }