1 instantiation of ResourceToolEntry
aspire (1)
Mcp\McpResourceToolRefreshService.cs (1)
106refreshedMap[exposedName] = new ResourceToolEntry(routedResourceName, tool);
7 references to ResourceToolEntry
aspire (7)
Commands\AgentMcpCommand.cs (1)
212if (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)
21private Dictionary<string, ResourceToolEntry> _resourceToolMap = new(StringComparer.Ordinal); 34public bool TryGetResourceToolMap(out IReadOnlyDictionary<string, ResourceToolEntry> resourceToolMap) 74public async Task<(IReadOnlyDictionary<string, ResourceToolEntry> ToolMap, bool Changed)> RefreshResourceToolMapAsync(CancellationToken cancellationToken) 78var refreshedMap = new Dictionary<string, ResourceToolEntry>(StringComparer.Ordinal);