示例#1
0
 public ServiceEntry CloneFor(Container newContainer)
 {
     var result = new ServiceEntry ();
     result.Factory = this.Factory;
     result.Scope = this.Scope;
     result.Owner = this.Owner;
     result.Container = newContainer;
     result.Iniatilizer = this.Iniatilizer;
     return result;
 }
示例#2
0
 public Container CreateChildContainer()
 {
     var newChildContainer = new Container (this);
     childContainers.Push (newChildContainer);
     return newChildContainer;
 }
示例#3
0
 internal Container(Container parentContainer)
 {
     this.parentContainer = parentContainer;
 }