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

Grpc.Net.Client.Balancer.ResolverResult

public sealed class ResolverResult
Represents the results from a Resolver.

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

Gets a collection of resolved addresses.

Gets metadata attributes.

public ServiceConfig ServiceConfig { get; }

Gets an optional service config.

public Status? ServiceConfigStatus { get; }

Gets an optional service config status.

public Status Status { get; }

Gets the status. A status other than OK indicates failure.

public static ResolverResult ForFailure(Status status)

Create ResolverResult for failure.

Create ResolverResult for the specified addresses.

public static ResolverResult ForResult(IReadOnlyList<BalancerAddress> addresses, ServiceConfig serviceConfig, Status? serviceConfigStatus)

Create ResolverResult for the specified addresses and service config.