private static void registerServices(ConfigGraph config, BehaviorGraph graph) { graph.Settings.Register(graph.Services); config .AllServiceRegistrations() .OfType<IServiceRegistration>() .Each(x => x.Apply(graph.Services)); graph.Services.AddService(config); }