forked from modelcontextprotocol/csharp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResourceUpdatedNotificationParams.cs
More file actions
29 lines (27 loc) · 1.1 KB
/
ResourceUpdatedNotificationParams.cs
File metadata and controls
29 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
/// <summary>
/// Represents the parameters used with a <see cref="NotificationMethods.ResourceUpdatedNotification"/>
/// notification sent whenever a subscribed resource changes.
/// </summary>
/// <remarks>
/// <para>
/// When a client subscribes to resource updates using <see cref="SubscribeRequestParams"/>, the server will
/// send notifications with this payload whenever the subscribed resource is modified. These notifications
/// allow clients to maintain synchronized state without needing to poll the server for changes.
/// </para>
/// <para>
/// See the <see href="https://github.com/modelcontextprotocol/specification/blob/main/schema/">schema</see> for details.
/// </para>
/// </remarks>
public class ResourceUpdatedNotificationParams
{
/// <summary>
/// Gets or sets the URI of the resource that was updated.
/// </summary>
/// <remarks>
/// The URI can use any protocol; it is up to the server how to interpret it.
/// </remarks>
[JsonPropertyName("uri")]
public string? Uri { get; init; }
}