2 writes to _indexedDocuments
aspire (2)
Mcp\Docs\DocsIndexService.cs (2)
156_indexedDocuments = [.. cachedDocuments.Select(static d => new IndexedDocument(d))]; 175_indexedDocuments = [.. documents.Select(static d => new IndexedDocument(d))];
11 references to _indexedDocuments
aspire (11)
Mcp\Docs\DocsIndexService.cs (11)
130public bool IsIndexed => _indexedDocuments is not null; 134if (_indexedDocuments is not null) 143if (_indexedDocuments is not null) 159_logger.LogInformation("Loaded {Count} documents from cache in {ElapsedTime:ss\\.fff} seconds.", _indexedDocuments.Count, cacheElapsedTime); 182_logger.LogInformation("Indexed {Count} documents from aspire.dev in {ElapsedTime:ss\\.fff} seconds.", _indexedDocuments.Count, elapsedTime); 194if (_indexedDocuments is null or { Count: 0 }) 201.. _indexedDocuments.Select(static d => new DocsListItem 214if (_indexedDocuments is null or { Count: 0 } || string.IsNullOrWhiteSpace(query)) 230foreach (var doc in _indexedDocuments) 259if (_indexedDocuments is null or { Count: 0 }) 264var doc = _indexedDocuments.FirstOrDefault(d =>