Table of Contents

Property MaxMsgs

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

MaxMsgs

Number of messages to wait for before automatically unsubscribing.

public int? MaxMsgs { get; init; }

Property Value

int?

Remarks

If not set, all published messages will be received until explicitly unsubscribed or disposed.