2 instantiations of ResourceToolEntry
aspire (1)
Mcp\McpResourceToolRefreshService.cs (1)
111refreshedMap[exposedName] = new ResourceToolEntry(routedResourceName, tool);
Aspire.Cli.Tests (1)
Commands\AgentMcpCommandTests.cs (1)
1273var projected = new ResourceToolEntry("resource", source).ToProtocolTool("resource_contract_tool");
7 references to ResourceToolEntry
aspire (7)
Commands\AgentMcpCommand.cs (1)
360if (snapshot.ToolMap.TryGetValue(toolName, out var resourceAndTool))
Mcp\IMcpResourceToolRefreshService.cs (1)
80IReadOnlyDictionary<string, ResourceToolEntry> ToolMap);
Mcp\McpResourceToolRefreshService.cs (5)
25new Dictionary<string, ResourceToolEntry>(StringComparer.Ordinal)); 86var refreshedMap = new Dictionary<string, ResourceToolEntry>(StringComparer.Ordinal); 143IReadOnlyDictionary<string, ResourceToolEntry> previous, 144IReadOnlyDictionary<string, ResourceToolEntry> current) 153if (!current.TryGetValue(exposedName, out var currentEntry) ||