TestCluster.StartSiloAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
StartSiloAsync(Int32, TestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean) |
Starts a new silo. |
StartSiloAsync(TestCluster, Int32, TestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean) |
Start a new silo in the target cluster |
StartSiloAsync(Int32, TestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean)
- Source:
- TestCluster.cs
Starts a new silo.
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)
Parameters
- instanceNumber
- Int32
The instance number to deploy
- clusterOptions
- TestClusterOptions
The options to use.
- configurationOverrides
- IReadOnlyList<IConfigurationSource>
Configuration overrides.
- startSiloOnNewPort
- Boolean
Whether we start this silo on a new port, instead of the default one
Returns
A handle to the deployed silo.
Applies to
StartSiloAsync(TestCluster, Int32, TestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean)
- Source:
- TestCluster.cs
Start a new silo in the target cluster
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)
Parameters
- cluster
- TestCluster
The TestCluster in which the silo should be deployed
- instanceNumber
- Int32
The instance number to deploy
- clusterOptions
- TestClusterOptions
The options to use.
- configurationOverrides
- IReadOnlyList<IConfigurationSource>
Configuration overrides.
- startSiloOnNewPort
- Boolean
Whether we start this silo on a new port, instead of the default one
Returns
A handle to the silo deployed