Class Dns
Extension for DNS resolution support in Akka.NET.
Inherited Members
Namespace: Akka.IO
Assembly: Akka.dll
Syntax
public class Dns : ExtensionIdProvider<DnsExt>, IExtensionId<DnsExt>, IExtensionId
Fields
| Edit this page View SourceInstance
The singleton instance of the Dns extension.
Declaration
public static readonly Dns Instance
Field Value
Type | Description |
---|---|
Dns |
Methods
| Edit this page View SourceCached(string, ActorSystem)
Returns a cached DNS resolution for the given name, or null if not cached.
Declaration
public static Dns.Resolved Cached(string name, ActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
string | name | The DNS name to look up in the cache. |
ActorSystem | system | The actor system to use for resolution. |
Returns
Type | Description |
---|---|
Dns.Resolved | The cached DNS resolution, or null if not found. |
CreateExtension(ExtendedActorSystem)
TBD
Declaration
public override DnsExt CreateExtension(ExtendedActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ExtendedActorSystem | system | TBD |
Returns
Type | Description |
---|---|
DnsExt | TBD |
Overrides
| Edit this page View SourceResolveName(string, ActorSystem, IActorRef)
Attempts to resolve the DNS name, using the cache if possible, otherwise triggers a DNS query.
Declaration
public static Dns.Resolved ResolveName(string name, ActorSystem system, IActorRef sender)
Parameters
Type | Name | Description |
---|---|---|
string | name | The DNS name to resolve. |
ActorSystem | system | The actor system to use for resolution. |
IActorRef | sender | The actor requesting the resolution. |
Returns
Type | Description |
---|---|
Dns.Resolved | The resolved DNS entry, or null if not cached. |