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

A cache for DNS entries.
Afficher le fichier Open project: Vanaheimr/Hermod Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
RemoveExpiredCacheEntries ( Object State ) : void

Method Details

Add() public méthode

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.
Résultat DNSCache

Add() public méthode

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.
Résultat DNSCache

DNSCache() public méthode

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

GetDNSInfo() public méthode

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

ToString() public méthode

Get a string representation of this object.
public ToString ( ) : String
Résultat String