Redigera

Dela via


StaticGatewayListProvider Class

Definition

IGatewayListProvider implementation which returns a static list, configured via StaticGatewayListProviderOptions.

public class StaticGatewayListProvider : Orleans.Messaging.IGatewayListProvider
type StaticGatewayListProvider = class
    interface IGatewayListProvider
Public Class StaticGatewayListProvider
Implements IGatewayListProvider
Inheritance
StaticGatewayListProvider
Implements

Constructors

StaticGatewayListProvider(IOptions<StaticGatewayListProviderOptions>, IOptions<GatewayOptions>)

Initializes a new instance of the StaticGatewayListProvider class.

Properties

IsUpdatable

Gets a value indicating whether this IGatewayListProvider ever refreshes its returned information, or always returns the same gateway list.

MaxStaleness

Gets the period of time between refreshes.

Methods

GetGateways()

Returns 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.

InitializeGatewayListProvider()

Initializes the provider, will be called before all other methods.

Applies to