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

LateBoundCommissionConcerns

Lifetime concern that works for components that don't have their actual type determined upfront
using Castle.Core; using System; namespace Castle.MicroKernel.LifecycleConcerns { [Serializable] public class LateBoundCommissionConcerns : LateBoundConcerns<ICommissionConcern>, ICommissionConcern { public override void Apply(ComponentModel model, object component) { GetComponentConcerns(component.GetType()).ForEach(delegate(ICommissionConcern c) { c.Apply(model, component); }); } } }