Component evidence

NATS JetStream Stream Snapshot Request (Models/StreamSnapshotRequest.cs)

nats.net · src/NATS.Client.JetStream/Models/StreamSnapshotRequest.cs · csharp · Apache-2.0
integrationinfrachatlang:csharptag:jetstreamtag:snapshot

C# model for requesting JetStream stream snapshots with delivery subject and consumer exclusion options.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/nats-io/nats.net | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
namespace NATS.Client.JetStream.Models;

/// <summary>
/// A request to the JetStream $JS.API.STREAM.SNAPSHOT API
/// </summary>

public record StreamSnapshotRequest
{
    /// <summary>
    /// The NATS subject where the snapshot will be delivered
    /// </summary>
    [System.Text.Json.Serialization.JsonPropertyName("deliver_subject")]
    [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.Never)]
    [System.ComponentModel.DataAnnotations.Required]
#if NET6_0
    public string DeliverSubject { get; set; } = default!;
#else
#pragma

... (truncated -- full source via MCP)