<PackageReference Include="Castle.Windsor" Version="2.5.4" />

CastleComponentAttribute

This attribute is useful only when you want to register all components on an assembly as a batch process. By doing so, the batch register will look for this attribute to distinguish components from other classes.
public string Key { get; }

public Type Service { get; }

public CastleComponentAttribute(string key)

public CastleComponentAttribute(string key, Type service)

public CastleComponentAttribute(string key, Type service, LifestyleType lifestyle)