Property IdleTimeout
IdleTimeout
Maximum amount of time allowed between any two subsequent messages before automatically unsubscribing.
public TimeSpan? IdleTimeout { get; init; }
Property Value
Remarks
If not set, all published messages will be received until explicitly unsubscribed or disposed. Use MaxValue or InfiniteTimeSpan to explicitly disable the timeout. Other values must be between zero and ~49.7 days (the maximum supported by Timer); out-of-range values throw ArgumentOutOfRangeException when the subscription starts.