InProcessTestCluster.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
| Name | Description |
|---|---|
| StartSiloAsync(Int32, InProcessTestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean) |
Obsolete.
Starts a new silo. |
| StartSiloAsync(InProcessTestCluster, Int32, InProcessTestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean) |
Obsolete.
Start a new silo in the target cluster |
| StartSiloAsync(Int32, InProcessTestClusterOptions) |
Starts a new silo. |
| StartSiloAsync(InProcessTestCluster, Int32, InProcessTestClusterOptions) |
Start a new silo in the target cluster |
StartSiloAsync(Int32, InProcessTestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean)
Caution
Use the overload which does not have a 'startSiloOnNewPort' parameter.
Starts a new silo.
[System.Obsolete("Use the overload which does not have a 'startSiloOnNewPort' parameter.")]
public System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle> StartSiloAsync(int instanceNumber, Orleans.TestingHost.InProcessTestClusterOptions clusterOptions, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> configurationOverrides, bool startSiloOnNewPort);
public System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle> StartSiloAsync(int instanceNumber, Orleans.TestingHost.InProcessTestClusterOptions clusterOptions, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> configurationOverrides = default, bool startSiloOnNewPort = false);
[<System.Obsolete("Use the overload which does not have a 'startSiloOnNewPort' parameter.")>]
member this.StartSiloAsync : int * Orleans.TestingHost.InProcessTestClusterOptions * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> * bool -> System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle>
member this.StartSiloAsync : int * Orleans.TestingHost.InProcessTestClusterOptions * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> * bool -> System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle>
Public Function StartSiloAsync (instanceNumber As Integer, clusterOptions As InProcessTestClusterOptions, configurationOverrides As IReadOnlyList(Of IConfigurationSource), startSiloOnNewPort As Boolean) As Task(Of InProcessSiloHandle)
Public Function StartSiloAsync (instanceNumber As Integer, clusterOptions As InProcessTestClusterOptions, Optional configurationOverrides As IReadOnlyList(Of IConfigurationSource) = Nothing, Optional startSiloOnNewPort As Boolean = false) As Task(Of InProcessSiloHandle)
Parameters
- instanceNumber
- Int32
The instance number to deploy
- clusterOptions
- InProcessTestClusterOptions
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.
- Attributes
Applies to
StartSiloAsync(InProcessTestCluster, Int32, InProcessTestClusterOptions, IReadOnlyList<IConfigurationSource>, Boolean)
Caution
Use the overload which does not have a 'startSiloOnNewPort' parameter.
Start a new silo in the target cluster
[System.Obsolete("Use the overload which does not have a 'startSiloOnNewPort' parameter.")]
public static System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle> StartSiloAsync(Orleans.TestingHost.InProcessTestCluster cluster, int instanceNumber, Orleans.TestingHost.InProcessTestClusterOptions clusterOptions, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> configurationOverrides, bool startSiloOnNewPort);
public static System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle> StartSiloAsync(Orleans.TestingHost.InProcessTestCluster cluster, int instanceNumber, Orleans.TestingHost.InProcessTestClusterOptions clusterOptions, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> configurationOverrides = default, bool startSiloOnNewPort = false);
[<System.Obsolete("Use the overload which does not have a 'startSiloOnNewPort' parameter.")>]
static member StartSiloAsync : Orleans.TestingHost.InProcessTestCluster * int * Orleans.TestingHost.InProcessTestClusterOptions * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> * bool -> System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle>
static member StartSiloAsync : Orleans.TestingHost.InProcessTestCluster * int * Orleans.TestingHost.InProcessTestClusterOptions * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> * bool -> System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle>
Public Shared Function StartSiloAsync (cluster As InProcessTestCluster, instanceNumber As Integer, clusterOptions As InProcessTestClusterOptions, configurationOverrides As IReadOnlyList(Of IConfigurationSource), startSiloOnNewPort As Boolean) As Task(Of InProcessSiloHandle)
Public Shared Function StartSiloAsync (cluster As InProcessTestCluster, instanceNumber As Integer, clusterOptions As InProcessTestClusterOptions, Optional configurationOverrides As IReadOnlyList(Of IConfigurationSource) = Nothing, Optional startSiloOnNewPort As Boolean = false) As Task(Of InProcessSiloHandle)
Parameters
- cluster
- InProcessTestCluster
The InProcessTestCluster in which the silo should be deployed
- instanceNumber
- Int32
The instance number to deploy
- clusterOptions
- InProcessTestClusterOptions
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
- Attributes
Applies to
StartSiloAsync(Int32, InProcessTestClusterOptions)
Starts a new silo.
public System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle> StartSiloAsync(int instanceNumber, Orleans.TestingHost.InProcessTestClusterOptions clusterOptions);
member this.StartSiloAsync : int * Orleans.TestingHost.InProcessTestClusterOptions -> System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle>
Public Function StartSiloAsync (instanceNumber As Integer, clusterOptions As InProcessTestClusterOptions) As Task(Of InProcessSiloHandle)
Parameters
- instanceNumber
- Int32
The instance number to deploy
- clusterOptions
- InProcessTestClusterOptions
The options to use.
Returns
A handle to the deployed silo.
Applies to
StartSiloAsync(InProcessTestCluster, Int32, InProcessTestClusterOptions)
Start a new silo in the target cluster
public static System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle> StartSiloAsync(Orleans.TestingHost.InProcessTestCluster cluster, int instanceNumber, Orleans.TestingHost.InProcessTestClusterOptions clusterOptions);
static member StartSiloAsync : Orleans.TestingHost.InProcessTestCluster * int * Orleans.TestingHost.InProcessTestClusterOptions -> System.Threading.Tasks.Task<Orleans.TestingHost.InProcessSiloHandle>
Public Shared Function StartSiloAsync (cluster As InProcessTestCluster, instanceNumber As Integer, clusterOptions As InProcessTestClusterOptions) As Task(Of InProcessSiloHandle)
Parameters
- cluster
- InProcessTestCluster
The InProcessTestCluster in which the silo should be deployed
- instanceNumber
- Int32
The instance number to deploy
- clusterOptions
- InProcessTestClusterOptions
The options to use.
Returns
A handle to the silo deployed