CoreHostingExtensions.UseLocalhostClustering 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseLocalhostClustering(ISiloBuilder, Int32, Int32, IPEndPoint, String, String) |
設定定址接收器以使用僅限開發叢集,並在 localhost 上接聽。 |
UseLocalhostClustering(ISiloHostBuilder, Int32, Int32, IPEndPoint, String, String) |
設定定址接收器以使用僅限開發叢集,並在 localhost 上接聽。 |
UseLocalhostClustering(ISiloBuilder, Int32, Int32, IPEndPoint, String, String)
設定定址接收器以使用僅限開發叢集,並在 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
服務識別碼。
- clusterId
- String
叢集識別碼。
傳回
定址接收器產生器。
適用於
UseLocalhostClustering(ISiloHostBuilder, Int32, Int32, IPEndPoint, String, String)
設定定址接收器以使用僅限開發叢集,並在 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
服務識別碼。
- clusterId
- String
叢集識別碼。
傳回
定址接收器產生器。