Table of Contents

Class ServerAddressFeature

Namespace
IceRpc.Features
Assembly
IceRpc.dll

Default implementation of IServerAddressFeature.

public sealed class ServerAddressFeature : IServerAddressFeature
Inheritance
ServerAddressFeature
Implements
Inherited Members
Extension Methods

Constructors

ServerAddressFeature(ServiceAddress)

Constructs a server address feature that uses the server addresses of a service address.

public ServerAddressFeature(ServiceAddress serviceAddress)

Parameters

serviceAddress ServiceAddress

The service address to copy the server addresses from.

Properties

AltServerAddresses

Gets or sets the alternatives to ServerAddress.

public ImmutableList<ServerAddress> AltServerAddresses { get; set; }

Property Value

ImmutableList<ServerAddress>

The list of alternatives to ServerAddress. It is empty when ServerAddress is null.

RemovedServerAddresses

Gets or sets the list of ServerAddress that have been removed and will not be used for the invocation.

public ImmutableList<ServerAddress> RemovedServerAddresses { get; set; }

Property Value

ImmutableList<ServerAddress>

The list of removed ServerAddress.

ServerAddress

Gets or sets the main server address for the invocation. When retrying, it represents the server address that was used by the preceding attempt.

public ServerAddress? ServerAddress { get; set; }

Property Value

ServerAddress?

The main server address. It is null if there's no server address to use for the invocation.