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

IComponentActivator

public interface IComponentActivator
Implements the instance creation logic. The default implementation should rely on an ordinary call to Activator.CreateInstance().
using Castle.MicroKernel.Context; namespace Castle.MicroKernel { public interface IComponentActivator { object Create(CreationContext context, Burden burden); void Destroy(object instance); } }