Table of Contents

Constructor ConsumerConfig

Namespace
NATS.Client.JetStream.Models
Assembly
NATS.Client.JetStream.dll

ConsumerConfig()

Create an ephemeral consumer configuration.

public ConsumerConfig()

Remarks

When DurableName is not specified, the consumer is ephemeral. This default constructor doesn't set any properties explicitly.

ConsumerConfig(string)

Create a durable consumer configuration.

public ConsumerConfig(string name)

Parameters

name string

Durable name

Remarks

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 name parameter and sets the AckPolicy to Explicit.