Search Results for

    Show / Hide Table of Contents

    Class Dns

    Extension for DNS resolution support in Akka.NET.

    Inheritance
    object
    ExtensionIdProvider<DnsExt>
    Dns
    Implements
    IExtensionId<DnsExt>
    IExtensionId
    Inherited Members
    ExtensionIdProvider<DnsExt>.Apply(ActorSystem)
    ExtensionIdProvider<DnsExt>.ExtensionType
    ExtensionIdProvider<DnsExt>.Get(ActorSystem)
    ExtensionIdProvider<DnsExt>.Equals(object)
    ExtensionIdProvider<DnsExt>.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.IO
    Assembly: Akka.dll
    Syntax
    public class Dns : ExtensionIdProvider<DnsExt>, IExtensionId<DnsExt>, IExtensionId

    Fields

    | Edit this page View Source

    Instance

    The singleton instance of the Dns extension.

    Declaration
    public static readonly Dns Instance
    Field Value
    Type Description
    Dns

    Methods

    | Edit this page View Source

    Cached(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.

    | Edit this page View Source

    CreateExtension(ExtendedActorSystem)

    TBD

    Declaration
    public override DnsExt CreateExtension(ExtendedActorSystem system)
    Parameters
    Type Name Description
    ExtendedActorSystem system

    TBD

    Returns
    Type Description
    DnsExt

    TBD

    Overrides
    ExtensionIdProvider<DnsExt>.CreateExtension(ExtendedActorSystem)
    | Edit this page View Source

    ResolveName(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.

    Implements

    IExtensionId<T>
    IExtensionId

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET