Пример #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>();
 }