コード例 #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
ファイル: Container.cs プロジェクト: sandalkuilang/wb
 public Container(string name)
 {
     this.name         = name;
     this.activator    = new DefaultActivator();
     this.registration = new ConcurrentStorage(this.activator);
 }
コード例 #4
0
ファイル: Container.cs プロジェクト: sandalkuilang/wb
 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);
 }