IGatewayListProvider
interface
Namespace: Orleans.Messaging
Interface that provides Orleans gateways information.
public interface IGatewayListProviderRemarks
Providers implement the cancellation-aware Async methods to cancel their underlying operations. The default implementations support existing providers by cancelling the caller's wait and observing completion of the tokenless operation.
Properties
IsUpdatableGets a value indicating whether this IGatewayListProvider ever refreshes its returned information, or always returns the same gateway list.MaxStalenessGets the period of time between refreshes.
Methods
GetGatewaysReturns the list of gateways (silos) that can be used by a client to connect to Orleans cluster. The Uri is in the form of: "gwy.tcp://IP:port/Generation". See Utils.ToGatewayUri and Utils.ToSiloAddress for more details about Uri format.GetGatewaysAsync(CancellationToken)Gets the gateway endpoints which clients can use to connect to the cluster.InitializeGatewayListProviderInitializes the provider, will be called before all other methods.InitializeGatewayListProviderAsync(CancellationToken)Initializes the provider before gateway discovery begins.
