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

IReleasePolicy

public interface IReleasePolicy : IDisposable
Policy managing lifetime of components, and in particular their release process.

Creates nested policy for scoped object tracking.

bool HasTrack(object instance)

Returns true if instance is being tracked by this release policy, false otherwise.

void Release(object instance)

Releases instance if it's being tracked by this release policy, invoking its IDecommissionConcerns and stops tracking it so that it can be claimed by the Garbage Collector.

void Track(object instance, Burden burden)

Asks the policy to track given object. The object will be released when a call to Release is made.