Refine 2.0.0 concept documentation (#1742)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 782b5bad-4046-49ec-93a6-72768b5b7521 Copilot-Session: 4b938335-418c-4ee7-8287-6c70d9148b89
This commit is contained in:
parent
6e2f285827
commit
314bdb2f49
1 changed files with 178 additions and 63 deletions
|
|
@ -83,11 +83,11 @@ if (client.ServerCapabilities.Resources is { Subscribe: true })
|
|||
// Check if the server supports prompts with list-changed notifications
|
||||
if (client.ServerCapabilities.Prompts is { ListChanged: true })
|
||||
{
|
||||
mcpClient.RegisterNotificationHandler(
|
||||
client.RegisterNotificationHandler(
|
||||
NotificationMethods.PromptListChangedNotification,
|
||||
async (notification, ct) =>
|
||||
{
|
||||
var prompts = await mcpClient.ListPromptsAsync(cancellationToken: ct);
|
||||
var prompts = await client.ListPromptsAsync(cancellationToken: ct);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue