3 instantiations of DocsContent
aspire (1)
Mcp\Docs\DocsIndexService.cs (1)
287return new DocsContent
Aspire.Cli.Tests (2)
Commands\DocsCommandTests.cs (1)
205return ValueTask.FromResult<DocsContent?>(new DocsContent
Mcp\TestDocsIndexService.cs (1)
58return ValueTask.FromResult<DocsContent?>(new DocsContent
22 references to DocsContent
aspire (5)
Commands\DocsGetCommand.cs (1)
71var doc = await InteractionService.ShowStatusAsync(
JsonSourceGenerationContext.cs (1)
36[JsonSerializable(typeof(DocsContent))]
Mcp\Docs\DocsIndexService.cs (2)
49ValueTask<DocsContent?> GetDocumentAsync(string slug, string? section = null, CancellationToken cancellationToken = default); 255public async ValueTask<DocsContent?> GetDocumentAsync(string slug, string? section = null, CancellationToken cancellationToken = default)
Mcp\Tools\GetDocTool.cs (1)
78var doc = await _docsIndexService.GetDocumentAsync(slug, section, cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (17)
Commands\DocsCommandTests.cs (3)
201public ValueTask<DocsContent?> GetDocumentAsync(string slug, string? section = null, CancellationToken cancellationToken = default) 205return ValueTask.FromResult<DocsContent?>(new DocsContent 215return ValueTask.FromResult<DocsContent?>(null);
Mcp\Docs\DocsIndexServiceTests.cs (11)
285var doc = await service.GetDocumentAsync("redis-integration"); 305var doc = await service.GetDocumentAsync("REDIS-INTEGRATION"); 324var doc = await service.GetDocumentAsync("nonexistent-doc"); 348var doc = await service.GetDocumentAsync("redis-integration", "Installation"); 369var doc = await service.GetDocumentAsync("redis-integration", "Getting Started"); 395var doc = await service.GetDocumentAsync("redis-integration"); 486var doc = await service.GetDocumentAsync(null!); 504var doc = await service.GetDocumentAsync(""); 522var doc = await service.GetDocumentAsync(" "); 566var doc = await service.GetDocumentAsync("any-slug"); 677var doc = await service.GetDocumentAsync("redis-integration", "NonExistentSection");
Mcp\TestDocsIndexService.cs (3)
49public ValueTask<DocsContent?> GetDocumentAsync(string slug, string? section = null, CancellationToken cancellationToken = default) 54return ValueTask.FromResult<DocsContent?>(null); 58return ValueTask.FromResult<DocsContent?>(new DocsContent