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