public IPipelineGraph ToNestedGraph() { var nestedPluginGraph = _pluginGraph.ToNestedGraph(); var instances = new ComplexInstanceGraph(this, nestedPluginGraph, ContainerRole.Nested); return(new PipelineGraph(nestedPluginGraph, instances, this, _singletons, new ContainerSpecificObjectCache())); }
public IPipelineGraph ToNestedGraph(TypeArguments arguments = null) { var nestedPluginGraph = _pluginGraph.ToNestedGraph(); if (arguments != null) { foreach (var pair in arguments.Defaults) { nestedPluginGraph.Families[pair.Key] = PluginFamily.ExplicitOverride(pair.Key, pair.Value); } } var instances = new ComplexInstanceGraph(this, nestedPluginGraph, ContainerRole.Nested); return(new PipelineGraph(nestedPluginGraph, instances, this, _singletons, new ContainerSpecificObjectCache())); }