public static ServiceGraph ToGraph(this IServiceRegistry registry) { var behaviorGraph = new BehaviorGraph(); registry.As <IConfigurationAction>().Configure(behaviorGraph); return(behaviorGraph.Services); }