예제 #1
0
 public ServiceVariable(Type argType, NestedContainerVariable parent) : base(argType, DefaultArgName(argType))
 {
     Dependencies.Add(parent);
     Creator = new NestedContainerServiceCreation(this, parent);
 }
 public NestedContainerServiceCreation(ServiceVariable service, NestedContainerVariable parent) : base(false)
 {
     Service = service;
     creates.Fill(service);
     uses.Add(parent);
 }
예제 #3
0
 static StructureMapServices()
 {
     Root   = new InjectedField(typeof(IContainer), "root");
     Nested = new NestedContainerVariable(new NestedContainerCreation(Root));
 }