MailBee.NET Objects 7.2

DnsCache.Timeout Property

Gets or sets the interval which specifies for how long DNS records in the cache remain actual.

public static int Timeout {get; set;}

Property Value

Positive integer value which specifies the amount time (in minutes) to allow DNS records remain in the cache. The default value is 90 minutes.

Remarks

By default, a DNS record in the cache considered be valid for 90 minutes since the moment it was added to the cache. Increasing Timeout value may improve performance in the case if DNS records of recipient domains change rarely.

In the case if all DNS records become invalid (for instance, after reconfiguration of the network) and the cache is no longer valid, the developer may manually initialize it by either running the application again or calling Clear method to clear the DNS cache of the existing instance of the application.

Exceptions

Exception TypeCondition
MailBeeInvalidArgumentExceptionvalue is negative or zero.

See Also

DnsCache Class | MailBee.DnsMX Namespace