public void Dispose()
{
// if the dependency were being tracked, and we reached the dispose...
if (dependencies != null && dependencyTrackingKey != null)
{
// ...then the dependency was resolved successfully, we can stop tracking it.
UntrackDependency(dependencyTrackingKey);
}
}