C# Class org.GraphDefined.Vanaheimr.Hermod.DNS.DNSCache

A cache for DNS entries.
ファイルを表示 Open project: Vanaheimr/Hermod Class Usage Examples

Public Methods

Method Description
Add ( String Domainname, DNSInfo DNSInformation ) : DNSCache

Add the given DNS information to the DNS cache.

Add ( String Domainname, IPSocket Origin, ADNSResourceRecord ResourceRecord ) : DNSCache

Add the given DNS resource record to the DNS cache.

DNSCache ( System.TimeSpan CleanUpEvery = null ) : System

Create a new DNS cache.

GetDNSInfo ( String DomainName ) : DNSInfo

Get the cached DNS information from the DNS cache.

ToString ( ) : String

Get a string representation of this object.

Private Methods

Method Description
RemoveExpiredCacheEntries ( Object State ) : void

Method Details

Add() public method

Add the given DNS information to the DNS cache.
public Add ( String Domainname, DNSInfo DNSInformation ) : DNSCache
Domainname String The domain name.
DNSInformation DNSInfo The DNS information to add.
return DNSCache

Add() public method

Add the given DNS resource record to the DNS cache.
public Add ( String Domainname, IPSocket Origin, ADNSResourceRecord ResourceRecord ) : DNSCache
Domainname String The domain name.
Origin IPSocket The origin of the DNS resource record.
ResourceRecord ADNSResourceRecord The DNS resource record to add.
return DNSCache

DNSCache() public method

Create a new DNS cache.
public DNSCache ( System.TimeSpan CleanUpEvery = null ) : System
CleanUpEvery System.TimeSpan How often to remove outdated entries from DNS cache.
return System

GetDNSInfo() public method

Get the cached DNS information from the DNS cache.
public GetDNSInfo ( String DomainName ) : DNSInfo
DomainName String The domain name.
return DNSInfo

ToString() public method

Get a string representation of this object.
public ToString ( ) : String
return String