You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
79
79
/// <returns>A <see cref="ValueTask"/> containing the prompt's result with content and messages.</returns>
80
+
/// <exception cref="McpException">The request failed or the server returned an error response.</exception>
80
81
/// <remarks>
81
82
/// <para>
82
83
/// This method sends a request to the MCP server to execute this prompt with the provided arguments.
Copy file name to clipboardExpand all lines: src/ModelContextProtocol.Core/Client/McpClientResource.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ public McpClientResource(McpClient client, Resource resource)
76
76
/// </summary>
77
77
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
78
78
/// <returns>A <see cref="ValueTask{ReadResourceResult}"/> containing the resource's result with content and messages.</returns>
79
+
/// <exception cref="McpException">The request failed or the server returned an error response.</exception>
79
80
/// <remarks>
80
81
/// <para>
81
82
/// This is a convenience method that internally calls <see cref="McpClient.ReadResourceAsync(string, RequestOptions, CancellationToken)"/>.
Copy file name to clipboardExpand all lines: src/ModelContextProtocol.Core/Client/McpClientResourceTemplate.cs
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,7 @@ public McpClientResourceTemplate(McpClient client, ResourceTemplate resourceTemp
80
80
/// </param>
81
81
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
82
82
/// <returns>A <see cref="ValueTask{ReadResourceResult}"/> containing the resource template's result with content and messages.</returns>
83
+
/// <exception cref="McpException">The request failed or the server returned an error response.</exception>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
20
20
/// <returns>A task that represents the asynchronous operation. The task result contains the deserialized result.</returns>
21
+
/// <exception cref="ArgumentNullException"><paramref name="method"/> is <see langword="null"/>.</exception>
22
+
/// <exception cref="ArgumentException"><paramref name="method"/> is empty or composed entirely of whitespace.</exception>
23
+
/// <exception cref="McpException">The request failed or the server returned an error response.</exception>
0 commit comments