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
Copy file name to clipboardExpand all lines: src/ModelContextProtocol/Client/McpClientExtensions.cs
+16-16
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ public static class McpClientExtensions
15
15
/// Sends a ping request to verify server connectivity.
16
16
/// </summary>
17
17
/// <param name="client">The client.</param>
18
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
18
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
19
19
/// <returns>A task that completes when the ping is successful.</returns>
/// <param name="cancellationToken">A token to cancel the operation.</param>
37
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
38
38
/// <returns>A list of all available tools.</returns>
/// <param name="cancellationToken">A token to cancel the operation.</param>
78
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
79
79
/// <returns>An asynchronous sequence of all available tools.</returns>
80
80
/// <remarks>
81
81
/// Every iteration through the returned <see cref="IAsyncEnumerable{McpClientTool}"/>
@@ -115,7 +115,7 @@ public static async IAsyncEnumerable<McpClientTool> EnumerateToolsAsync(
115
115
/// Retrieves a list of available prompts from the server.
116
116
/// </summary>
117
117
/// <param name="client">The client.</param>
118
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
118
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
119
119
/// <returns>A list of all available prompts.</returns>
@@ -150,7 +150,7 @@ public static async Task<IList<McpClientPrompt>> ListPromptsAsync(
150
150
/// Creates an enumerable for asynchronously enumerating all available prompts from the server.
151
151
/// </summary>
152
152
/// <param name="client">The client.</param>
153
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
153
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
154
154
/// <returns>An asynchronous sequence of all available prompts.</returns>
155
155
/// <remarks>
156
156
/// Every iteration through the returned <see cref="IAsyncEnumerable{Prompt}"/>
@@ -188,7 +188,7 @@ public static async IAsyncEnumerable<Prompt> EnumeratePromptsAsync(
188
188
/// <param name="name">The name of the prompt to retrieve</param>
189
189
/// <param name="arguments">Optional arguments for the prompt</param>
/// <param name="cancellationToken">A token to cancel the operation.</param>
191
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
192
192
/// <returns>A task containing the prompt's content and messages.</returns>
193
193
publicstaticTask<GetPromptResult>GetPromptAsync(
194
194
thisIMcpClientclient,
@@ -216,7 +216,7 @@ public static Task<GetPromptResult> GetPromptAsync(
216
216
/// Retrieves a list of available resource templates from the server.
217
217
/// </summary>
218
218
/// <param name="client">The client.</param>
219
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
219
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
220
220
/// <returns>A list of all available resource templates.</returns>
@@ -255,7 +255,7 @@ public static async Task<IList<ResourceTemplate>> ListResourceTemplatesAsync(
255
255
/// Creates an enumerable for asynchronously enumerating all available resource templates from the server.
256
256
/// </summary>
257
257
/// <param name="client">The client.</param>
258
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
258
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
259
259
/// <returns>An asynchronous sequence of all available resource templates.</returns>
260
260
/// <remarks>
261
261
/// Every iteration through the returned <see cref="IAsyncEnumerable{ResourceTemplate}"/>
@@ -290,7 +290,7 @@ public static async IAsyncEnumerable<ResourceTemplate> EnumerateResourceTemplate
290
290
/// Retrieves a list of available resources from the server.
291
291
/// </summary>
292
292
/// <param name="client">The client.</param>
293
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
293
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
294
294
/// <returns>A list of all available resources.</returns>
@@ -329,7 +329,7 @@ public static async Task<IList<Resource>> ListResourcesAsync(
329
329
/// Creates an enumerable for asynchronously enumerating all available resources from the server.
330
330
/// </summary>
331
331
/// <param name="client">The client.</param>
332
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
332
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
333
333
/// <returns>An asynchronous sequence of all available resources.</returns>
334
334
/// <remarks>
335
335
/// Every iteration through the returned <see cref="IAsyncEnumerable{Resource}"/>
@@ -365,7 +365,7 @@ public static async IAsyncEnumerable<Resource> EnumerateResourcesAsync(
365
365
/// </summary>
366
366
/// <param name="client">The client.</param>
367
367
/// <param name="uri">The uri of the resource.</param>
368
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
368
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
@@ -387,7 +387,7 @@ public static Task<ReadResourceResult> ReadResourceAsync(
387
387
/// <param name="reference">A resource (uri) or prompt (name) reference</param>
388
388
/// <param name="argumentName">Name of argument. Must be non-null and non-empty.</param>
389
389
/// <param name="argumentValue">Value of argument. Must be non-null.</param>
390
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
390
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
@@ -416,7 +416,7 @@ public static Task<CompleteResult> GetCompletionAsync(this IMcpClient client, Re
416
416
/// </summary>
417
417
/// <param name="client">The client.</param>
418
418
/// <param name="uri">The uri of the resource.</param>
419
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
419
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
/// <param name="uri">The uri of the resource.</param>
438
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
438
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
/// <param name="cancellationToken">A token to cancel the operation.</param>
459
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
460
460
/// <returns>A task containing the tool's response.</returns>
/// <param name="level">The minimum log level of messages to be generated.</param>
625
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
625
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
/// <param name="createTransportFunc">An optional factory method which returns transport implementations based on a server configuration.</param>
39
39
/// <param name="loggerFactory">A logger factory for creating loggers for clients.</param>
40
-
/// <param name="cancellationToken">A token to cancel the operation.</param>
40
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
41
41
/// <returns>An <see cref="IMcpClient"/> that's connected to the specified server.</returns>
42
42
/// <exception cref="ArgumentNullException"><paramref name="serverConfig"/> is <see langword="null"/>.</exception>
43
43
/// <exception cref="ArgumentNullException"><paramref name="clientOptions"/> is <see langword="null"/>.</exception>
/// <param name="cancellationToken">A token to cancel the operation.</param>
25
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
26
26
/// <returns>A task containing the prompt's content and messages.</returns>
0 commit comments