示例#1
0
 private DefaultConfiguration(Container container)
 {
     _constructorSelector = new ConstructorSelector();
     _dependencyResolver = new DependencyResolver(this);
     _registrationStorage = new RegistrationStorage();
     _typeActivator = new ExpressionActivator(container, _constructorSelector);
 }
示例#2
0
 private DefaultConfiguration(Container container)
 {
     _constructorSelector = new ConstructorSelector();
     _dependencyResolver  = new DependencyResolver(this);
     _registrationStorage = new RegistrationStorage();
     _typeActivator       = new ExpressionActivator(container, _constructorSelector);
 }
示例#3
0
 public Container(string name)
 {
     this.name         = name;
     this.activator    = new DefaultActivator();
     this.registration = new ConcurrentStorage(this.activator);
 }
示例#4
0
 public Container() : this("Container")
 {
     this.activator    = new DefaultActivator();
     this.registration = new ConcurrentStorage(this.activator);
 }
示例#5
0
 IConfigurable IConfigurable.SetRegistrationStorage(IRegistrationStorage registrationStorage)
 {
     _registrationStorage = registrationStorage;
     return this;
 }
示例#6
0
 IConfigurable IConfigurable.SetRegistrationStorage(IRegistrationStorage registrationStorage)
 {
     _registrationStorage = registrationStorage;
     return(this);
 }