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

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

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