public SubResolveOperationViewModel(ResolveOperation resolveOperation)
        {
            if (resolveOperation.RootInstanceLookup != null)
                _rootInstanceLookup = BuildInstanceLookupTree(resolveOperation.RootInstanceLookup);

            if (resolveOperation.CallingMethod != null)
                _locationDescription = resolveOperation.CallingMethod.DisplayName;

            _isRootOperation = resolveOperation.Parent == null;
        }
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;
 }