示例#1
0
        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);
        }