TestSiloSpecificOptions.Create 方法

定义

重载

Create(TestClusterOptions, Int32, Boolean)
Create(TestCluster, TestClusterOptions, Int32, Boolean)

创建 TestSiloSpecificOptions 类的实例。

Create(TestClusterOptions, Int32, Boolean)

public static Orleans.TestingHost.TestSiloSpecificOptions Create (Orleans.TestingHost.TestClusterOptions testClusterOptions, int instanceNumber, bool assignNewPort = false);
static member Create : Orleans.TestingHost.TestClusterOptions * int * bool -> Orleans.TestingHost.TestSiloSpecificOptions
Public Shared Function Create (testClusterOptions As TestClusterOptions, instanceNumber As Integer, Optional assignNewPort As Boolean = false) As TestSiloSpecificOptions

参数

testClusterOptions
TestClusterOptions
instanceNumber
Int32
assignNewPort
Boolean

返回

适用于

Create(TestCluster, TestClusterOptions, Int32, Boolean)

Source:
TestClusterOptions.cs

创建 TestSiloSpecificOptions 类的实例。

public static Orleans.TestingHost.TestSiloSpecificOptions Create (Orleans.TestingHost.TestCluster testCluster, Orleans.TestingHost.TestClusterOptions testClusterOptions, int instanceNumber, bool assignNewPort = false);
static member Create : Orleans.TestingHost.TestCluster * Orleans.TestingHost.TestClusterOptions * int * bool -> Orleans.TestingHost.TestSiloSpecificOptions
Public Shared Function Create (testCluster As TestCluster, testClusterOptions As TestClusterOptions, instanceNumber As Integer, Optional assignNewPort As Boolean = false) As TestSiloSpecificOptions

参数

testCluster
TestCluster

测试群集。

testClusterOptions
TestClusterOptions

测试群集选项。

instanceNumber
Int32

实例编号。

assignNewPort
Boolean

如果设置为 true,则为 silo 分配新端口。

返回

选项。

适用于