/// <summary> /// Removes and disposes of the contents of the cachedContentTree. /// </summary> private void CleanUpCachedContentTree() { if (cachedContentTree.Any()) { foreach (var rangeValuePair in cachedContentTree) { cachedContentTree.Remove(rangeValuePair.Value); rangeValuePair.Value.Dispose(); } } totalContentLength = 0; }