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