Skip to content

Commit

Permalink
Release 2.0.2-preview.1 (#271)
Browse files Browse the repository at this point in the history
* Support for no_responders
* More consumer notifications
  • Loading branch information
mtmk authored Dec 6, 2023
1 parent 1e2234f commit 33c1d89
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/NATS.Client.JetStream/Models/ConsumerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,27 @@ namespace NATS.Client.JetStream.Models;

public record ConsumerConfig
{
/// <summary>
/// Create an ephemeral consumer configuration.
/// </summary>
/// <remarks>
/// When <c>DurableName</c> is not specified, the consumer is ephemeral.
/// This default constructor doesn't set any properties explicitly.
/// </remarks>
public ConsumerConfig()
{
}

/// <summary>
/// Create a durable consumer configuration.
/// </summary>
/// <param name="name">Durable name</param>
/// <remarks>
/// To create a durable consumer, the properties <c>Name</c> and <c>DurableName</c>
/// must be specified. You must also specify the <c>AckPolicy</c> as other than <c>None</c>.
/// This constructor sets the <c>Name</c> and <c>DurableName</c> to the same value specified
/// in <paramref name="name"/> parameter and sets the <c>AckPolicy</c> to <c>Explicit</c>.
/// </remarks>
public ConsumerConfig(string name)
{
Name = name;
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.1
2.0.2-preview.1

0 comments on commit 33c1d89

Please sign in to comment.