<PackageReference Include="Grpc.Net.Client" Version="2.80.0-pre1" />

Grpc.Net.Client.Balancer.Resolver

public abstract class Resolver : IDisposable
A configurable component that resolves a target Uri and returns them to the caller. The targets URI's scheme is used to select the Resolver implementation, and uses the URI parts after the scheme for actual resolution.

The addresses of a target may change over time, thus the caller registers a callback to receive continuous updates as ResolverResult.

A Resolver doesn't need to automatically re-resolve on failure. Instead, the callback is responsible for eventually invoking Refresh.

Note: Experimental API that can change or be removed without any prior notice.

namespace Grpc.Net.Client.Balancer { public abstract class Resolver : IDisposable { public abstract void Start(Action<ResolverResult> listener); public virtual void Refresh(); protected virtual void Dispose(bool disposing); public void Dispose(); protected Resolver(); } }