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

ILifecycleConcern

public interface ILifecycleConcern
Represents a concern that will be applied to a component instance during commission or decommission phase.
void Apply(ComponentModel model, object component)

Implementors should act on the instance in response to a decommission or commission phase.