Beispiel #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);
 }
 static StructureMapServices()
 {
     Root   = new InjectedField(typeof(IContainer), "root");
     Nested = new NestedContainerVariable(new NestedContainerCreation(Root));
 }