10 references to _cachedData
Microsoft.CodeAnalysis.Remote.ServiceHub (10)
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (8)
243
lock (
_cachedData
)
245
var data =
_cachedData
.FirstOrNull(d => d.id == documentKey.Id && d.checksum == checksum);
263
lock (
_cachedData
)
266
for (var currentNode =
_cachedData
.First; currentNode != null; currentNode = currentNode.Next)
270
_cachedData
.Remove(currentNode);
276
_cachedData
.AddLast((documentKey.Id, type, checksum, classifiedSpans));
279
if (
_cachedData
.Count > MaxCachedDocumentCount)
280
_cachedData
.RemoveFirst();
Services\SemanticClassification\RemoteSemanticClassificationService.cs (2)
53
lock (
_cachedData
)
54
_cachedData
.Clear();