C# Класс org.GraphDefined.Vanaheimr.Hermod.DNS.DNSCache

A cache for DNS entries.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
RemoveExpiredCacheEntries ( Object State ) : void

Описание методов

Add() публичный Метод

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.
Результат DNSCache

Add() публичный Метод

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.
Результат DNSCache

DNSCache() публичный Метод

Create a new DNS cache.
public DNSCache ( System.TimeSpan CleanUpEvery = null ) : System
CleanUpEvery System.TimeSpan How often to remove outdated entries from DNS cache.
Результат System

GetDNSInfo() публичный Метод

Get the cached DNS information from the DNS cache.
public GetDNSInfo ( String DomainName ) : DNSInfo
DomainName String The domain name.
Результат DNSInfo

ToString() публичный Метод

Get a string representation of this object.
public ToString ( ) : String
Результат String