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)
130
public bool IsIndexed =>
_indexedDocuments
is not null;
134
if (
_indexedDocuments
is not null)
143
if (
_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);
194
if (
_indexedDocuments
is null or { Count: 0 })
201
..
_indexedDocuments
.Select(static d => new DocsListItem
214
if (
_indexedDocuments
is null or { Count: 0 } || string.IsNullOrWhiteSpace(query))
230
foreach (var doc in
_indexedDocuments
)
259
if (
_indexedDocuments
is null or { Count: 0 })
264
var doc =
_indexedDocuments
.FirstOrDefault(d =>