共用方式為


ClusterConfiguration.LocalhostPrimarySilo(Int32, Int32) 方法

定義

傳回主要本機定址接收器 (預先填入的 ClusterConfiguration 物件,以測試)

public static Orleans.Runtime.Configuration.ClusterConfiguration LocalhostPrimarySilo (int siloPort = 22222, int gatewayPort = 40000);
static member LocalhostPrimarySilo : int * int -> Orleans.Runtime.Configuration.ClusterConfiguration
Public Shared Function LocalhostPrimarySilo (Optional siloPort As Integer = 22222, Optional gatewayPort As Integer = 40000) As ClusterConfiguration

參數

siloPort
Int32

定址接收器與定址接收器通訊的 TCP 埠

gatewayPort
Int32

用戶端閘道 TCP 埠

傳回

可以傳遞至 Silo 或 SiloHost 類別以進行初始化的 ClusterConfiguration 物件

適用於