Search Results for

    Show / Hide Table of Contents

    Class ServiceDiscovery

    Implement to provide a service discovery method

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

    Methods

    | Edit this page View Source

    Lookup(Lookup, TimeSpan)

    Perform lookup using underlying discovery implementation.

    Declaration
    public abstract Task<ServiceDiscovery.Resolved> Lookup(Lookup lookup, TimeSpan resolveTimeout)
    Parameters
    Type Name Description
    Lookup lookup

    A service discovery lookup.

    TimeSpan resolveTimeout

    Timeout. Up to the discovery-method to adhere to this

    Returns
    Type Description
    Task<ServiceDiscovery.Resolved>
    | Edit this page View Source

    Lookup(string, TimeSpan)

    Perform lookup using underlying discovery implementation.

    While the implementation may provide other settings and ways to configure timeouts, the passed `resolveTimeout` should never be exceeded, as it signals the application's eagerness to wait for a result for this specific lookup.

    Declaration
    public Task<ServiceDiscovery.Resolved> Lookup(string serviceName, TimeSpan resolveTimeout)
    Parameters
    Type Name Description
    string serviceName

    A name, see discovery-method's docs for how this is interpreted.

    TimeSpan resolveTimeout

    Timeout. Up to the discovery-method to adhere to this

    Returns
    Type Description
    Task<ServiceDiscovery.Resolved>

    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