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

CallContextLifetimeScope

Provides explicit lifetime scoping within logical path of execution. Used for types with Scoped.

public void Dispose()