CoreHostingExtensions.UseLocalhostClustering 方法

定义

重载

UseLocalhostClustering(ISiloBuilder, Int32, Int32, IPEndPoint, String, String)

将接收器配置为使用仅限开发群集并侦听 localhost。

UseLocalhostClustering(ISiloHostBuilder, Int32, Int32, IPEndPoint, String, String)

将接收器配置为使用仅限开发群集并侦听 localhost。

UseLocalhostClustering(ISiloBuilder, Int32, Int32, IPEndPoint, String, String)

Source:
CoreHostingExtensions.cs

将接收器配置为使用仅限开发群集并侦听 localhost。

public static Orleans.Hosting.ISiloBuilder UseLocalhostClustering (this Orleans.Hosting.ISiloBuilder builder, int siloPort = 11111, int gatewayPort = 30000, System.Net.IPEndPoint primarySiloEndpoint = default, string serviceId = "dev", string clusterId = "dev");
static member UseLocalhostClustering : Orleans.Hosting.ISiloBuilder * int * int * System.Net.IPEndPoint * string * string -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function UseLocalhostClustering (builder As ISiloBuilder, Optional siloPort As Integer = 11111, Optional gatewayPort As Integer = 30000, Optional primarySiloEndpoint As IPEndPoint = Nothing, Optional serviceId As String = "dev", Optional clusterId As String = "dev") As ISiloBuilder

参数

builder
ISiloBuilder

孤岛生成器。

siloPort
Int32

接收器端口。

gatewayPort
Int32

网关端口。

primarySiloEndpoint
IPEndPoint

主接收器的终结点,或 null 将此接收器用作主要接收器。

serviceId
String

服务 ID。

clusterId
String

群集 ID。

返回

孤岛生成器。

适用于

UseLocalhostClustering(ISiloHostBuilder, Int32, Int32, IPEndPoint, String, String)

Source:
CoreHostingExtensions.cs

将接收器配置为使用仅限开发群集并侦听 localhost。

public static Orleans.Hosting.ISiloHostBuilder UseLocalhostClustering (this Orleans.Hosting.ISiloHostBuilder builder, int siloPort = 11111, int gatewayPort = 30000, System.Net.IPEndPoint primarySiloEndpoint = default, string serviceId = "dev", string clusterId = "dev");
static member UseLocalhostClustering : Orleans.Hosting.ISiloHostBuilder * int * int * System.Net.IPEndPoint * string * string -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function UseLocalhostClustering (builder As ISiloHostBuilder, Optional siloPort As Integer = 11111, Optional gatewayPort As Integer = 30000, Optional primarySiloEndpoint As IPEndPoint = Nothing, Optional serviceId As String = "dev", Optional clusterId As String = "dev") As ISiloHostBuilder

参数

builder
ISiloHostBuilder

孤岛生成器。

siloPort
Int32

接收器端口。

gatewayPort
Int32

网关端口。

primarySiloEndpoint
IPEndPoint

主接收器的终结点,或 null 将此接收器用作主要接收器。

serviceId
String

服务 ID。

clusterId
String

群集 ID。

返回

孤岛生成器。

适用于