Example #1
0
 internal SingleRegistration(Type implementationType, AsTraitImpl asTrait, LiveScopeTraitImpl liveScopeTrait, ConstructorTraitImpl constructorTrait, PropertiesTraitImpl propertiesTrait)
 {
     _implementationType = implementationType;
     _asTrait            = asTrait;
     _liveScopeTrait     = liveScopeTrait;
     _constructorTrait   = constructorTrait;
     _propertiesTrait    = propertiesTrait;
 }
Example #2
0
 public SingleRegistration(Type implementationType)
 {
     _liveScopeTrait     = new LiveScopeTraitImpl();
     _asTrait            = new AsTraitImpl();
     _constructorTrait   = new ConstructorTraitImpl();
     _propertiesTrait    = new PropertiesTraitImpl();
     _implementationType = implementationType;
 }