Class ServiceDiscovery
Implement to provide a service discovery method
Inherited Members
Namespace: Akka.Discovery
Assembly: Akka.Discovery.dll
Syntax
public abstract class ServiceDiscovery
Methods
| Edit this page View SourceLookup(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> |
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> |
Edit this page