共用方式為


TestCluster.StartSiloAsync 方法

定義

多載

StartSiloAsync(Int32, TestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean)

啟動新的定址接收器。

StartSiloAsync(TestCluster, Int32, TestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean)

在目標叢集中啟動新的定址接收器

StartSiloAsync(Int32, TestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean)

來源:
TestCluster.cs

啟動新的定址接收器。

public System.Threading.Tasks.Task<Orleans.TestingHost.SiloHandle> StartSiloAsync (int instanceNumber, Orleans.TestingHost.TestClusterOptions clusterOptions, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> configurationOverrides = default, bool startSiloOnNewPort = false);
member this.StartSiloAsync : int * Orleans.TestingHost.TestClusterOptions * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> * bool -> System.Threading.Tasks.Task<Orleans.TestingHost.SiloHandle>
Public Function StartSiloAsync (instanceNumber As Integer, clusterOptions As TestClusterOptions, Optional configurationOverrides As IReadOnlyList(Of IConfigurationSource) = Nothing, Optional startSiloOnNewPort As Boolean = false) As Task(Of SiloHandle)

參數

instanceNumber
Int32

要部署的實例編號

clusterOptions
TestClusterOptions

要使用的選項。

configurationOverrides
IReadOnlyList<IConfigurationSource>

組態覆寫。

startSiloOnNewPort
Boolean

我們是否在新的埠上啟動此定址接收器,而不是預設的定址接收器

傳回

已部署定址接收器的控制碼。

適用於

StartSiloAsync(TestCluster, Int32, TestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean)

來源:
TestCluster.cs

在目標叢集中啟動新的定址接收器

public static System.Threading.Tasks.Task<Orleans.TestingHost.SiloHandle> StartSiloAsync (Orleans.TestingHost.TestCluster cluster, int instanceNumber, Orleans.TestingHost.TestClusterOptions clusterOptions, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> configurationOverrides = default, bool startSiloOnNewPort = false);
static member StartSiloAsync : Orleans.TestingHost.TestCluster * int * Orleans.TestingHost.TestClusterOptions * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> * bool -> System.Threading.Tasks.Task<Orleans.TestingHost.SiloHandle>
Public Shared Function StartSiloAsync (cluster As TestCluster, instanceNumber As Integer, clusterOptions As TestClusterOptions, Optional configurationOverrides As IReadOnlyList(Of IConfigurationSource) = Nothing, Optional startSiloOnNewPort As Boolean = false) As Task(Of SiloHandle)

參數

cluster
TestCluster

要在其中部署定址接收器的 TestCluster

instanceNumber
Int32

要部署的實例編號

clusterOptions
TestClusterOptions

要使用的選項。

configurationOverrides
IReadOnlyList<IConfigurationSource>

組態覆寫。

startSiloOnNewPort
Boolean

我們是否在新的埠上啟動此定址接收器,而不是預設的定址接收器

傳回

已部署之定址接收器的控制碼

適用於