EndpointOptionsExtensions.ConfigureEndpoints 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ConfigureEndpoints(ISiloBuilder, Int32, Int32, AddressFamily, Boolean)
- Source:
- EndpointOptionsExtensions.cs
为接收器配置终结点。
public static Orleans.Hosting.ISiloBuilder ConfigureEndpoints (this Orleans.Hosting.ISiloBuilder builder, int siloPort, int gatewayPort, System.Net.Sockets.AddressFamily addressFamily = System.Net.Sockets.AddressFamily.InterNetwork, bool listenOnAnyHostAddress = false);
static member ConfigureEndpoints : Orleans.Hosting.ISiloBuilder * int * int * System.Net.Sockets.AddressFamily * bool -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function ConfigureEndpoints (builder As ISiloBuilder, siloPort As Integer, gatewayPort As Integer, Optional addressFamily As AddressFamily = System.Net.Sockets.AddressFamily.InterNetwork, Optional listenOnAnyHostAddress As Boolean = false) As ISiloBuilder
参数
- builder
- ISiloBuilder
要配置的主机生成器。
- siloPort
- Int32
此接收器用于孤岛到接收器通信的端口。
- gatewayPort
- Int32
此接收器用于客户端到接收器 (网关) 通信的端口。 指定 0 以禁用网关功能。
- addressFamily
- AddressFamily
要侦听的地址系列。 默认 IPv4 地址系列。
- listenOnAnyHostAddress
- Boolean
设置为 true 以侦听主机的所有 IP 地址,而不是仅侦听播发地址。
返回
适用于
ConfigureEndpoints(ISiloBuilder, IPAddress, Int32, Int32, Boolean)
- Source:
- EndpointOptionsExtensions.cs
为接收器配置终结点。
public static Orleans.Hosting.ISiloBuilder ConfigureEndpoints (this Orleans.Hosting.ISiloBuilder builder, System.Net.IPAddress advertisedIP, int siloPort, int gatewayPort, bool listenOnAnyHostAddress = false);
static member ConfigureEndpoints : Orleans.Hosting.ISiloBuilder * System.Net.IPAddress * int * int * bool -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function ConfigureEndpoints (builder As ISiloBuilder, advertisedIP As IPAddress, siloPort As Integer, gatewayPort As Integer, Optional listenOnAnyHostAddress As Boolean = false) As ISiloBuilder
参数
- builder
- ISiloBuilder
要配置的主机生成器。
- advertisedIP
- IPAddress
要播发成员身份表中的 IP 地址
- siloPort
- Int32
此接收器用于孤岛到接收器通信的端口。
- gatewayPort
- Int32
此接收器用于客户端到接收器 (网关) 通信的端口。 指定 0 以禁用网关功能。
- listenOnAnyHostAddress
- Boolean
设置为 true 以侦听主机的所有 IP 地址,而不是仅侦听播发地址。
返回
适用于
ConfigureEndpoints(ISiloHostBuilder, Int32, Int32, AddressFamily, Boolean)
- Source:
- EndpointOptionsExtensions.cs
为接收器配置终结点。
public static Orleans.Hosting.ISiloHostBuilder ConfigureEndpoints (this Orleans.Hosting.ISiloHostBuilder builder, int siloPort, int gatewayPort, System.Net.Sockets.AddressFamily addressFamily = System.Net.Sockets.AddressFamily.InterNetwork, bool listenOnAnyHostAddress = false);
static member ConfigureEndpoints : Orleans.Hosting.ISiloHostBuilder * int * int * System.Net.Sockets.AddressFamily * bool -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function ConfigureEndpoints (builder As ISiloHostBuilder, siloPort As Integer, gatewayPort As Integer, Optional addressFamily As AddressFamily = System.Net.Sockets.AddressFamily.InterNetwork, Optional listenOnAnyHostAddress As Boolean = false) As ISiloHostBuilder
参数
- builder
- ISiloHostBuilder
要配置的主机生成器。
- siloPort
- Int32
此接收器用于孤岛到接收器通信的端口。
- gatewayPort
- Int32
此接收器用于客户端到接收器 (网关) 通信的端口。 指定 0 以禁用网关功能。
- addressFamily
- AddressFamily
要侦听的地址系列。 默认 IPv4 地址系列。
- listenOnAnyHostAddress
- Boolean
设置为 true 以侦听主机的所有 IP 地址,而不是仅侦听播发地址。
返回
适用于
ConfigureEndpoints(ISiloHostBuilder, IPAddress, Int32, Int32, Boolean)
- Source:
- EndpointOptionsExtensions.cs
为接收器配置终结点。
public static Orleans.Hosting.ISiloHostBuilder ConfigureEndpoints (this Orleans.Hosting.ISiloHostBuilder builder, System.Net.IPAddress advertisedIP, int siloPort, int gatewayPort, bool listenOnAnyHostAddress = false);
static member ConfigureEndpoints : Orleans.Hosting.ISiloHostBuilder * System.Net.IPAddress * int * int * bool -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function ConfigureEndpoints (builder As ISiloHostBuilder, advertisedIP As IPAddress, siloPort As Integer, gatewayPort As Integer, Optional listenOnAnyHostAddress As Boolean = false) As ISiloHostBuilder
参数
- builder
- ISiloHostBuilder
要配置的主机生成器。
- advertisedIP
- IPAddress
要播发成员身份表中的 IP 地址
- siloPort
- Int32
此接收器用于孤岛到接收器通信的端口。
- gatewayPort
- Int32
此接收器用于客户端到接收器 (网关) 通信的端口。 指定 0 以禁用网关功能。
- listenOnAnyHostAddress
- Boolean
设置为 true 以侦听主机的所有 IP 地址,而不是仅侦听播发地址。
返回
适用于
ConfigureEndpoints(ISiloBuilder, String, Int32, Int32, AddressFamily, Boolean)
- Source:
- EndpointOptionsExtensions.cs
为接收器配置终结点。
public static Orleans.Hosting.ISiloBuilder ConfigureEndpoints (this Orleans.Hosting.ISiloBuilder builder, string hostname, int siloPort, int gatewayPort, System.Net.Sockets.AddressFamily addressFamily = System.Net.Sockets.AddressFamily.InterNetwork, bool listenOnAnyHostAddress = false);
static member ConfigureEndpoints : Orleans.Hosting.ISiloBuilder * string * int * int * System.Net.Sockets.AddressFamily * bool -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function ConfigureEndpoints (builder As ISiloBuilder, hostname As String, siloPort As Integer, gatewayPort As Integer, Optional addressFamily As AddressFamily = System.Net.Sockets.AddressFamily.InterNetwork, Optional listenOnAnyHostAddress As Boolean = false) As ISiloBuilder
参数
- builder
- ISiloBuilder
要配置的主机生成器。
- hostname
- String
接收器正在运行的主机名。
- siloPort
- Int32
此接收器用于孤岛到接收器通信的端口。
- gatewayPort
- Int32
此接收器用于客户端到接收器 (网关) 通信的端口。 指定 0 以禁用网关功能。
- addressFamily
- AddressFamily
要侦听的地址系列。 默认 IPv4 地址系列。
- listenOnAnyHostAddress
- Boolean
设置为 true 以侦听主机的所有 IP 地址,而不是仅侦听播发地址。
返回
适用于
ConfigureEndpoints(ISiloHostBuilder, String, Int32, Int32, AddressFamily, Boolean)
- Source:
- EndpointOptionsExtensions.cs
为接收器配置终结点。
public static Orleans.Hosting.ISiloHostBuilder ConfigureEndpoints (this Orleans.Hosting.ISiloHostBuilder builder, string hostname, int siloPort, int gatewayPort, System.Net.Sockets.AddressFamily addressFamily = System.Net.Sockets.AddressFamily.InterNetwork, bool listenOnAnyHostAddress = false);
static member ConfigureEndpoints : Orleans.Hosting.ISiloHostBuilder * string * int * int * System.Net.Sockets.AddressFamily * bool -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function ConfigureEndpoints (builder As ISiloHostBuilder, hostname As String, siloPort As Integer, gatewayPort As Integer, Optional addressFamily As AddressFamily = System.Net.Sockets.AddressFamily.InterNetwork, Optional listenOnAnyHostAddress As Boolean = false) As ISiloHostBuilder
参数
- builder
- ISiloHostBuilder
要配置的主机生成器。
- hostname
- String
接收器正在运行的主机名。
- siloPort
- Int32
此接收器用于孤岛到接收器通信的端口。
- gatewayPort
- Int32
此接收器用于客户端到接收器 (网关) 通信的端口。 指定 0 以禁用网关功能。
- addressFamily
- AddressFamily
要侦听的地址系列。 默认 IPv4 地址系列。
- listenOnAnyHostAddress
- Boolean
设置为 true 以侦听主机的所有 IP 地址,而不是仅侦听播发地址。