コード例 #1
0
 public void Compose(IRegistrator registrator)
 {
     foreach (var attribute in _registerAttributes)
     {
         registrator.Register(attribute.ServiceType, attribute.Lifetime);
     }
     foreach (var attribute in _registerByAttributes)
     {
         registrator.RegisterBy(attribute.RegistrationAttributeType, attribute.Lifetime);
     }
 }
コード例 #2
0
 public void Compose(IRegistrator registrator)
 {
     registrator.RegisterBy <TestRegisteringAttribute>();
 }