Search Results for

    Show / Hide Table of Contents

    Class DnsBase

    Base class for DNS resolution backends.

    Inheritance
    object
    DnsBase
    SimpleDnsCache
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.IO
    Assembly: Akka.dll
    Syntax
    public abstract class DnsBase

    Methods

    | Edit this page View Source

    Cached(string)

    Returns a cached DNS resolution for the given name, or null if not cached.

    Declaration
    public virtual Dns.Resolved Cached(string name)
    Parameters
    Type Name Description
    string name

    The DNS name to look up in the cache.

    Returns
    Type Description
    Dns.Resolved

    The cached DNS resolution, or null if not found.

    | Edit this page View Source

    Resolve(string, ActorSystem, IActorRef)

    Attempts to resolve the DNS name, using the cache if possible, otherwise triggers a DNS query.

    Declaration
    public virtual Dns.Resolved Resolve(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.

    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