Skip to content

EndpointOptionsExtensions Methods

Extension methods for configuring EndpointOptions.

ConfigureEndpoints(ISiloBuilder, IPAddress, int, int, bool)

staticextension
View source
public static ISiloBuilder ConfigureEndpoints(this ISiloBuilder builder, IPAddress advertisedIP, int siloPort, int gatewayPort, bool listenOnAnyHostAddress = false)
Configure endpoints for the silo.

Parameters

builderISiloBuilder
The host builder to configure.
advertisedIPIPAddress
The IP address to be advertised in membership tables
siloPortint
The port this silo uses for silo-to-silo communication.
gatewayPortint
The port this silo uses for client-to-silo (gateway) communication. Specify 0 to disable gateway functionality.
listenOnAnyHostAddressbool
Set to true to listen on all IP addresses of the host instead of just the advertiseIP.

ConfigureEndpoints(ISiloBuilder, int, int, AddressFamily, bool)

staticextension
View source
public static ISiloBuilder ConfigureEndpoints(this ISiloBuilder builder, int siloPort, int gatewayPort, AddressFamily addressFamily = AddressFamily.InterNetwork, bool listenOnAnyHostAddress = false)
Configure endpoints for the silo.

Parameters

builderISiloBuilder
The host builder to configure.
siloPortint
The port this silo uses for silo-to-silo communication.
gatewayPortint
The port this silo uses for client-to-silo (gateway) communication. Specify 0 to disable gateway functionality.
addressFamilyAddressFamily
Address family to listen on. Default IPv4 address family.
listenOnAnyHostAddressbool
Set to true to listen on all IP addresses of the host instead of just the advertiseIP.

ConfigureEndpoints(ISiloBuilder, string, int, int, AddressFamily, bool)

staticextension
View source
public static ISiloBuilder ConfigureEndpoints(this ISiloBuilder builder, string hostname, int siloPort, int gatewayPort, AddressFamily addressFamily = AddressFamily.InterNetwork, bool listenOnAnyHostAddress = false)
Configure endpoints for the silo.

Parameters

builderISiloBuilder
The host builder to configure.
hostnamestring
The host name the silo is running on.
siloPortint
The port this silo uses for silo-to-silo communication.
gatewayPortint
The port this silo uses for client-to-silo (gateway) communication. Specify 0 to disable gateway functionality.
addressFamilyAddressFamily
Address family to listen on. Default IPv4 address family.
listenOnAnyHostAddressbool
Set to true to listen on all IP addresses of the host instead of just the advertiseIP.