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>
98
+
/// <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"/>.
117
+
/// </summary>
118
+
/// <typeparam name="TParameters">The type of the request parameters to serialize from.</typeparam>
119
+
/// <typeparam name="TResult">The type of the result to deserialize to.</typeparam>
120
+
/// <param name="method">The JSON-RPC method name to invoke.</param>
121
+
/// <param name="parameters">Object representing the request parameters.</param>
122
+
/// <param name="parametersTypeInfo">The type information for request parameter serialization.</param>
123
+
/// <param name="resultTypeInfo">The type information for request parameter deserialization.</param>
124
+
/// <param name="requestId">The request id for the request.</param>
125
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
126
+
/// <returns>A task that represents the asynchronous operation. The task result contains the deserialized result.</returns>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
156
+
/// <returns>A task that represents the asynchronous send operation.</returns>
157
+
/// <remarks>
158
+
/// <para>
159
+
/// This method sends a notification without any parameters. Notifications are one-way messages
160
+
/// that don't expect a response. They are commonly used for events, status updates, or to signal
/// Sends a notification with parameters to the connected session.
172
+
/// </summary>
173
+
/// <typeparam name="TParameters">The type of the notification parameters to serialize.</typeparam>
174
+
/// <param name="method">The JSON-RPC method name for the notification.</param>
175
+
/// <param name="parameters">Object representing the notification parameters.</param>
176
+
/// <param name="serializerOptions">The options governing parameter serialization. If null, default options are used.</param>
177
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
178
+
/// <returns>A task that represents the asynchronous send operation.</returns>
179
+
/// <remarks>
180
+
/// <para>
181
+
/// This method sends a notification with parameters to the connected session. Notifications are one-way
182
+
/// messages that don't expect a response, commonly used for events, status updates, or signaling changes.
183
+
/// </para>
184
+
/// <para>
185
+
/// The parameters object is serialized to JSON according to the provided serializer options or the default
186
+
/// options if none are specified.
187
+
/// </para>
188
+
/// <para>
189
+
/// The Model Context Protocol defines several standard notification methods in <see cref="NotificationMethods"/>,
190
+
/// but custom methods can also be used for application-specific notifications.
/// Sends a notification to the server with parameters.
208
+
/// </summary>
209
+
/// <param name="method">The JSON-RPC method name to invoke.</param>
210
+
/// <param name="parameters">Object representing the request parameters.</param>
211
+
/// <param name="parametersTypeInfo">The type information for request parameter serialization.</param>
212
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
/// Notifies the connected session of progress for a long-running operation.
228
+
/// </summary>
229
+
/// <param name="progressToken">The <see cref="ProgressToken"/> identifying the operation for which progress is being reported.</param>
230
+
/// <param name="progress">The progress update to send, containing information such as percentage complete or status message.</param>
231
+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
232
+
/// <returns>A task representing the completion of the notification operation (not the operation being tracked).</returns>
233
+
/// <exception cref="ArgumentNullException">The current session instance is <see langword="null"/>.</exception>
234
+
/// <remarks>
235
+
/// <para>
236
+
/// This method sends a progress notification to the connected session using the Model Context Protocol's
237
+
/// standardized progress notification format. Progress updates are identified by a <see cref="ProgressToken"/>
238
+
/// that allows the recipient to correlate multiple updates with a specific long-running operation.
239
+
/// </para>
240
+
/// <para>
241
+
/// Progress notifications are sent asynchronously and don't block the operation from continuing.
0 commit comments