TestCluster 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TestCluster() |
配置默认的主测试接收器,以及客户端进程内。 |
TestCluster(ClusterConfiguration) |
配置测试群集以及进程内的默认客户端。 |
TestCluster(TestClusterOptions) |
配置测试群集和进程内客户端。 |
TestCluster(ClusterConfiguration, ClientConfiguration) |
使用指定的接收器和客户端配置配置配置测试群集和进程内客户端。 |
TestCluster(TestClusterOptions, IReadOnlyList<IConfigurationSource>) |
配置测试群集和进程内客户端。 |
TestCluster(TestClusterOptions, IReadOnlyList<IConfigurationSource>, ITestClusterPortAllocator) |
配置测试群集和进程内客户端。 |
TestCluster()
配置默认的主测试接收器,以及客户端进程内。
public TestCluster ();
Public Sub New ()
适用于
TestCluster(ClusterConfiguration)
配置测试群集以及进程内的默认客户端。
public TestCluster (Orleans.Runtime.Configuration.ClusterConfiguration clusterConfiguration);
new Orleans.TestingHost.TestCluster : Orleans.Runtime.Configuration.ClusterConfiguration -> Orleans.TestingHost.TestCluster
Public Sub New (clusterConfiguration As ClusterConfiguration)
参数
- clusterConfiguration
- ClusterConfiguration
适用于
TestCluster(TestClusterOptions)
配置测试群集和进程内客户端。
public TestCluster (Orleans.TestingHost.TestClusterOptions options);
new Orleans.TestingHost.TestCluster : Orleans.TestingHost.TestClusterOptions -> Orleans.TestingHost.TestCluster
Public Sub New (options As TestClusterOptions)
参数
- options
- TestClusterOptions
适用于
TestCluster(ClusterConfiguration, ClientConfiguration)
使用指定的接收器和客户端配置配置配置测试群集和进程内客户端。
public TestCluster (Orleans.Runtime.Configuration.ClusterConfiguration clusterConfiguration, Orleans.Runtime.Configuration.ClientConfiguration clientConfiguration);
new Orleans.TestingHost.TestCluster : Orleans.Runtime.Configuration.ClusterConfiguration * Orleans.Runtime.Configuration.ClientConfiguration -> Orleans.TestingHost.TestCluster
Public Sub New (clusterConfiguration As ClusterConfiguration, clientConfiguration As ClientConfiguration)
参数
- clusterConfiguration
- ClusterConfiguration
- clientConfiguration
- ClientConfiguration
适用于
TestCluster(TestClusterOptions, IReadOnlyList<IConfigurationSource>)
配置测试群集和进程内客户端。
public TestCluster (Orleans.TestingHost.TestClusterOptions options, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> configurationSources);
new Orleans.TestingHost.TestCluster : Orleans.TestingHost.TestClusterOptions * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> -> Orleans.TestingHost.TestCluster
Public Sub New (options As TestClusterOptions, configurationSources As IReadOnlyList(Of IConfigurationSource))
参数
- options
- TestClusterOptions
- configurationSources
- IReadOnlyList<IConfigurationSource>
适用于
TestCluster(TestClusterOptions, IReadOnlyList<IConfigurationSource>, ITestClusterPortAllocator)
- Source:
- TestCluster.cs
配置测试群集和进程内客户端。
public TestCluster (Orleans.TestingHost.TestClusterOptions options, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> configurationSources, Orleans.TestingHost.ITestClusterPortAllocator portAllocator);
new Orleans.TestingHost.TestCluster : Orleans.TestingHost.TestClusterOptions * System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.Configuration.IConfigurationSource> * Orleans.TestingHost.ITestClusterPortAllocator -> Orleans.TestingHost.TestCluster
Public Sub New (options As TestClusterOptions, configurationSources As IReadOnlyList(Of IConfigurationSource), portAllocator As ITestClusterPortAllocator)
参数
- options
- TestClusterOptions
- configurationSources
- IReadOnlyList<IConfigurationSource>
- portAllocator
- ITestClusterPortAllocator