From 33c1d89ab8757c1398ce8ebe83081fb8ee752ef0 Mon Sep 17 00:00:00 2001 From: Ziya Suzen Date: Wed, 6 Dec 2023 08:30:20 +0000 Subject: [PATCH] Release 2.0.2-preview.1 (#271) * Support for no_responders * More consumer notifications --- .../Models/ConsumerConfig.cs | 17 +++++++++++++++++ version.txt | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/NATS.Client.JetStream/Models/ConsumerConfig.cs b/src/NATS.Client.JetStream/Models/ConsumerConfig.cs index 35311b337..4b1cdb9d8 100644 --- a/src/NATS.Client.JetStream/Models/ConsumerConfig.cs +++ b/src/NATS.Client.JetStream/Models/ConsumerConfig.cs @@ -4,10 +4,27 @@ namespace NATS.Client.JetStream.Models; public record ConsumerConfig { + /// + /// Create an ephemeral consumer configuration. + /// + /// + /// When DurableName is not specified, the consumer is ephemeral. + /// This default constructor doesn't set any properties explicitly. + /// public ConsumerConfig() { } + /// + /// Create a durable consumer configuration. + /// + /// Durable name + /// + /// To create a durable consumer, the properties Name and DurableName + /// must be specified. You must also specify the AckPolicy as other than None. + /// This constructor sets the Name and DurableName to the same value specified + /// in parameter and sets the AckPolicy to Explicit. + /// public ConsumerConfig(string name) { Name = name; diff --git a/version.txt b/version.txt index 38f77a65b..4ecd97ea9 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -2.0.1 +2.0.2-preview.1