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); } }
public void Compose(IRegistrator registrator) { registrator.RegisterBy <TestRegisteringAttribute>(); }