RegistrationGroup<S>
namespace Castle.MicroKernel.Registration
{
public abstract class RegistrationGroup<S>
{
private readonly ComponentRegistration<S> registration;
public ComponentRegistration<S> Registration => registration;
public RegistrationGroup(ComponentRegistration<S> registration)
{
this.registration = registration;
}
protected ComponentRegistration<S> AddAttributeDescriptor(string name, string value)
{
return registration.AddDescriptor(new AttributeDescriptor<S>(name, value));
}
protected ComponentRegistration<S> AddDescriptor(ComponentDescriptor<S> descriptor)
{
return registration.AddDescriptor(descriptor);
}
}
}