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

Castle.MicroKernel.ModelBuilder.Inspectors.LifestyleModelInspector

Inspects the component configuration and the type looking for a definition of lifestyle type. The configuration preceeds whatever is defined in the component.
namespace Castle.MicroKernel.ModelBuilder.Inspectors { public class LifestyleModelInspector : IContributeComponentModelConstruction { public LifestyleModelInspector(IConversionManager converter); public virtual void ProcessModel(IKernel kernel, ComponentModel model); protected virtual bool ReadLifestyleFromConfiguration(ComponentModel model); protected virtual void ReadLifestyleFromType(ComponentModel model); protected virtual void ValidateTypeFromAttribute(Type typeFromAttribute, Type expectedInterface, string attribute); } }