Class LookupClientSettings
The readonly version of LookupClientOptions used as default settings in LookupClient.
Implements
Inherited Members
Namespace: DnsClient
Assembly: DnsClient.dll
Syntax
public class LookupClientSettings : DnsQueryAndServerSettings, IEquatable<DnsQuerySettings>, IEquatable<DnsQueryAndServerSettings>, IEquatable<LookupClientSettings>
Constructors
| Improve this Doc View SourceLookupClientSettings(LookupClientOptions)
Creates a new instance of LookupClientSettings.
Declaration
public LookupClientSettings(LookupClientOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| LookupClientOptions | options |
Properties
| Improve this Doc View SourceMaximumCacheTimeout
Gets a TimeSpan which can override the TTL of a resource record in case the
TTL of the record is higher than this maximum value.
Default is Null.
Declaration
public TimeSpan? MaximumCacheTimeout { get; }
Property Value
| Type | Description |
|---|---|
| Nullable<TimeSpan> |
Remarks
This setting gets igonred in case UseCache is set to False.
The maximum value is 24 days.
Setting it to Infinite would be equal to not providing a value.
MinimumCacheTimeout
Gets a TimeSpan which can override the TTL of a resource record in case the
TTL of the record is lower than this minimum value.
Default is Null.
This is useful in cases where the server retruns records with zero TTL.
Declaration
public TimeSpan? MinimumCacheTimeout { get; }
Property Value
| Type | Description |
|---|---|
| Nullable<TimeSpan> |
Remarks
This setting gets igonred in case UseCache is set to False.
The maximum value is 24 days or Infinite.
Methods
| Improve this Doc View SourceEquals(LookupClientSettings)
Declaration
public bool Equals(LookupClientSettings other)
Parameters
| Type | Name | Description |
|---|---|---|
| LookupClientSettings | other |
Returns
| Type | Description |
|---|---|
| Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | obj |
Returns
| Type | Description |
|---|---|
| Boolean |