1 instantiation of ResourceToolEntry
aspire (1)
Mcp\McpResourceToolRefreshService.cs (1)
101refreshedMap[exposedName] = new ResourceToolEntry(resource.Name, tool);
7 references to ResourceToolEntry
aspire (7)
Commands\AgentMcpCommand.cs (1)
202if (resourceToolMap.TryGetValue(toolName, out var resourceAndTool))
Mcp\IMcpResourceToolRefreshService.cs (2)
19bool TryGetResourceToolMap(out IReadOnlyDictionary<string, ResourceToolEntry> resourceToolMap); 31Task<IReadOnlyDictionary<string, ResourceToolEntry>> RefreshResourceToolMapAsync(CancellationToken cancellationToken);
Mcp\McpResourceToolRefreshService.cs (4)
21private Dictionary<string, ResourceToolEntry> _resourceToolMap = new(StringComparer.Ordinal); 34public bool TryGetResourceToolMap(out IReadOnlyDictionary<string, ResourceToolEntry> resourceToolMap) 74public async Task<IReadOnlyDictionary<string, ResourceToolEntry>> RefreshResourceToolMapAsync(CancellationToken cancellationToken) 78var refreshedMap = new Dictionary<string, ResourceToolEntry>(StringComparer.Ordinal);