static InstanceLookupViewModel BuildInstanceLookupTree(InstanceLookup instanceLookup) { return new InstanceLookupViewModel( instanceLookup.Component.Description, Describe(instanceLookup.ActivationScope), !instanceLookup.SharedInstanceReused, instanceLookup.DependencyLookups.Select(BuildInstanceLookupTree)); }
public InstanceLookup(string id, ResolveOperation resolveOperation, LifetimeScope activationScope, Component component, InstanceLookup dependent = null) { if (id == null) throw new ArgumentNullException("id"); if (resolveOperation == null) throw new ArgumentNullException("resolveOperation"); if (activationScope == null) throw new ArgumentNullException("activationScope"); if (component == null) throw new ArgumentNullException("component"); _id = id; _resolveOperation = resolveOperation; _activationScope = activationScope; _component = component; _dependent = dependent; }
public InstanceLookup(string id, ResolveOperation resolveOperation, LifetimeScope activationScope, Component component, InstanceLookup dependent = null) { if (id == null) { throw new ArgumentNullException("id"); } if (resolveOperation == null) { throw new ArgumentNullException("resolveOperation"); } if (activationScope == null) { throw new ArgumentNullException("activationScope"); } if (component == null) { throw new ArgumentNullException("component"); } _id = id; _resolveOperation = resolveOperation; _activationScope = activationScope; _component = component; _dependent = dependent; }