public LifetimeScope(string id, string tag = null, LifetimeScope parent = null) { if (id == null) throw new ArgumentNullException("id"); _id = id; _tag = tag; _parent = parent; }
public ResolveOperation(string id, LifetimeScope lifetimeScope, Thread thread, ResolveOperation parent = null, MethodIdentifier callingMethod = null) { if (id == null) throw new ArgumentNullException("id"); if (lifetimeScope == null) throw new ArgumentNullException("lifetimeScope"); if (thread == null) throw new ArgumentNullException("thread"); _id = id; _lifetimeScope = lifetimeScope; _thread = thread; _parent = parent; _callingMethod = callingMethod; }
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 ResolveOperation(string id, LifetimeScope lifetimeScope, Thread thread, ResolveOperation parent = null, MethodIdentifier callingMethod = null) { if (id == null) { throw new ArgumentNullException("id"); } if (lifetimeScope == null) { throw new ArgumentNullException("lifetimeScope"); } if (thread == null) { throw new ArgumentNullException("thread"); } _id = id; _lifetimeScope = lifetimeScope; _thread = thread; _parent = parent; _callingMethod = callingMethod; }
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; }
static string Describe(LifetimeScope lifetimeScope) { if (lifetimeScope.Tag != null) return lifetimeScope.Tag; return "level " + lifetimeScope.Level; }