10 references to _cachedData
Microsoft.CodeAnalysis.Remote.ServiceHub (10)
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (8)
242
lock (
_cachedData
)
244
var data =
_cachedData
.FirstOrNull(d => d.id == documentKey.Id && d.checksum == checksum);
262
lock (
_cachedData
)
265
for (var currentNode =
_cachedData
.First; currentNode != null; currentNode = currentNode.Next)
269
_cachedData
.Remove(currentNode);
275
_cachedData
.AddLast((documentKey.Id, type, checksum, classifiedSpans));
278
if (
_cachedData
.Count > MaxCachedDocumentCount)
279
_cachedData
.RemoveFirst();
Services\SemanticClassification\RemoteSemanticClassificationService.cs (2)
53
lock (
_cachedData
)
54
_cachedData
.Clear();