Imap Idle OptionsRefresh Interval Property
Get or set the interval at which the IDLE command is restarted.
Definition
Namespace: MailKit.Net.Imap
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The refresh interval.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public TimeSpan RefreshInterval { get; set; }Property Value
TimeSpanThe refresh interval.
Remarks
Gets or sets how long a single IDLE command may run before the session ends it and issues a new one.
rfc2177 requires clients to restart IDLE at least every 29 minutes to avoid being logged off for inactivity, and many NAT gateways and firewalls drop idle TCP connections much sooner than that, which is why the default is DefaultRefreshInterval.
Exceptions
| ArgumentOutOfRangeException | value is less than or equal to Zero or greater than MaxValue milliseconds. |