Example #1
0
 public LifetimeScope(string id, string tag = null, LifetimeScope parent = null)
 {
     if (id == null) throw new ArgumentNullException("id");
     _id = id;
     _tag = tag;
     _parent = parent;
 }
Example #2
0
 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;
 }
Example #3
0
 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;
 }
Example #4
0
 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;
 }
Example #5
0
 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;
 }