Table of Contents

Property NamePrefix

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

NamePrefix

Optional prefix for the names of the consumers created on the server.

public string? NamePrefix { get; init; }

Property Value

string

Remarks

When set, consumers are named {NamePrefix}_{n}, where n starts at 1 and increments each time the consumer is recreated (e.g. orders_1, orders_2). The prefix should be unique among ordered consumers active on the stream, and cannot contain '.', '*', '>', '/', '' or whitespace. When not set, a random name is generated for each consumer.