TestCluster.StartSiloAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
StartSiloAsync(Int32, TestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean)
啟動新的定址接收器。
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)
在目標叢集中啟動新的定址接收器
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
我們是否在新的埠上啟動此定址接收器,而不是預設的定址接收器
傳回
已部署之定址接收器的控制碼