Models a request to list NATS JetStream streams with optional subject filtering and pagination offset. Reuse when interacting with NATS messaging APIs in C#.
// 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.LIST API
/// </summary>
public record StreamListRequest
{
/// <summary>
/// Limit the list to streams matching this subject filter
/// </summary>
[System.Text.Json.Serialization.JsonPropertyName("subject")]
[System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingDefault)]
public string? Subject { get; set; }
[System.Text.Json.Serialization.JsonPropertyName("offset")]
[System.Text.Json.Serializat
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key