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>
36
36
/// <returns>A task that represents the asynchronous operation. The task result contains the deserialized result.</returns>
/// Sends a JSON-RPC request and attempts to deserialize the result to <typeparamref name="TResult"/>.
56
56
/// </summary>
57
57
/// <typeparam name="TParameters">The type of the request parameters to serialize from.</typeparam>
58
58
/// <typeparam name="TResult">The type of the result to deserialize to.</typeparam>
59
-
/// <param name="endpoint">The MCP client or server instance.</param>
59
+
/// <param name="session">The MCP client or server instance.</param>
60
60
/// <param name="method">The JSON-RPC method name to invoke.</param>
61
61
/// <param name="parameters">Object representing the request parameters.</param>
62
62
/// <param name="parametersTypeInfo">The type information for request parameter serialization.</param>
@@ -65,7 +65,7 @@ public static ValueTask<TResult> SendRequestAsync<TParameters, TResult>(
65
65
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
66
66
/// <returns>A task that represents the asynchronous operation. The task result contains the deserialized result.</returns>
/// Sends a notification with parameters to the connected endpoint.
115
+
/// Sends a notification with parameters to the connected session.
116
116
/// </summary>
117
117
/// <typeparam name="TParameters">The type of the notification parameters to serialize.</typeparam>
118
-
/// <param name="endpoint">The MCP client or server instance.</param>
118
+
/// <param name="session">The MCP client or server instance.</param>
119
119
/// <param name="method">The JSON-RPC method name for the notification.</param>
120
120
/// <param name="parameters">Object representing the notification parameters.</param>
121
121
/// <param name="serializerOptions">The options governing parameter serialization. If null, default options are used.</param>
122
122
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
123
123
/// <returns>A task that represents the asynchronous send operation.</returns>
124
124
/// <remarks>
125
125
/// <para>
126
-
/// This method sends a notification with parameters to the connected endpoint. Notifications are one-way
126
+
/// This method sends a notification with parameters to the connected session. Notifications are one-way
127
127
/// messages that don't expect a response, commonly used for events, status updates, or signaling changes.
/// Sends a notification to the server with parameters.
154
154
/// </summary>
155
-
/// <param name="endpoint">The MCP client or server instance.</param>
155
+
/// <param name="session">The MCP client or server instance.</param>
156
156
/// <param name="method">The JSON-RPC method name to invoke.</param>
157
157
/// <param name="parameters">Object representing the request parameters.</param>
158
158
/// <param name="parametersTypeInfo">The type information for request parameter serialization.</param>
159
159
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
/// Notifies the connected endpoint of progress for a long-running operation.
176
+
/// Notifies the connected session of progress for a long-running operation.
177
177
/// </summary>
178
-
/// <param name="endpoint">The endpoint issuing the notification.</param>
178
+
/// <param name="session">The session issuing the notification.</param>
179
179
/// <param name="progressToken">The <see cref="ProgressToken"/> identifying the operation for which progress is being reported.</param>
180
180
/// <param name="progress">The progress update to send, containing information such as percentage complete or status message.</param>
181
181
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
182
182
/// <returns>A task representing the completion of the notification operation (not the operation being tracked).</returns>
183
-
/// <exception cref="ArgumentNullException"><paramref name="endpoint"/> is <see langword="null"/>.</exception>
183
+
/// <exception cref="ArgumentNullException"><paramref name="session"/> is <see langword="null"/>.</exception>
184
184
/// <remarks>
185
185
/// <para>
186
-
/// This method sends a progress notification to the connected endpoint using the Model Context Protocol's
186
+
/// This method sends a progress notification to the connected session using the Model Context Protocol's
187
187
/// standardized progress notification format. Progress updates are identified by a <see cref="ProgressToken"/>
188
188
/// that allows the recipient to correlate multiple updates with a specific long-running operation.
0 commit comments