1 instantiation of ResourceToolEntry
aspire (1)
Mcp\McpResourceToolRefreshService.cs (1)
107refreshedMap[exposedName] = new ResourceToolEntry(routedResourceName, tool);
7 references to ResourceToolEntry
aspire (7)
Commands\AgentMcpCommand.cs (1)
260if (resourceToolMap.TryGetValue(toolName, out var resourceAndTool))
Mcp\IMcpResourceToolRefreshService.cs (2)
19bool TryGetResourceToolMap(out IReadOnlyDictionary<string, ResourceToolEntry> resourceToolMap); 31Task<(IReadOnlyDictionary<string, ResourceToolEntry> ToolMap, bool Changed)> RefreshResourceToolMapAsync(CancellationToken cancellationToken);
Mcp\McpResourceToolRefreshService.cs (4)
22private Dictionary<string, ResourceToolEntry> _resourceToolMap = new(StringComparer.Ordinal); 35public bool TryGetResourceToolMap(out IReadOnlyDictionary<string, ResourceToolEntry> resourceToolMap) 75public async Task<(IReadOnlyDictionary<string, ResourceToolEntry> ToolMap, bool Changed)> RefreshResourceToolMapAsync(CancellationToken cancellationToken) 79var refreshedMap = new Dictionary<string, ResourceToolEntry>(StringComparer.Ordinal);