AI seeded comments from robch and then edited by stephentoub (#238)
* AI generated `///` comment updates * Fix compilation issues * Fix incorrect XML comment structure * Update all Client comments * Update all Configuration comments * Update all Messages comments * Update all Transport comments * Update all Types comments * Update all Server comments * Undo some commenting --------- Co-authored-by: Stephen Toub <stoub@microsoft.com>
This commit is contained in:
parent
07300389ee
commit
77871c5aac
1 changed files with 4017 additions and 1066 deletions
|
|
@ -1,20 +1,29 @@
|
|||
using System.Text.Json.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ModelContextProtocol.Protocol.Messages;
|
||||
|
||||
/// <summary>
|
||||
/// This notification indicates that the result will be unused, so any associated processing SHOULD cease.
|
||||
/// Represents a notification indicating that a request has been cancelled by the client,
|
||||
/// and that any associated processing should cease immediately.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This class is typically used in conjunction with the <see cref="NotificationMethods.CancelledNotification"/>
|
||||
/// method identifier. When a client sends this notification, the server should attempt to
|
||||
/// cancel any ongoing operations associated with the specified request ID.
|
||||
/// </remarks>
|
||||
public sealed class CancelledNotification
|
||||
{
|
||||
/// <summary>
|
||||
/// The ID of the request to cancel.
|
||||
/// Gets or sets the ID of the request to cancel.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This must match the ID of an in-flight request that the sender wishes to cancel.
|
||||
/// </remarks>
|
||||
[JsonPropertyName("requestId")]
|
||||
public RequestId RequestId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// An optional string describing the reason for the cancellation.
|
||||
/// Gets or sets an optional string describing the reason for the cancellation request.
|
||||
/// </summary>
|
||||
[JsonPropertyName("reason")]
|
||||
public string? Reason { get; set; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue