InProcessSiloHandle.CreateAsync 方法

定义

重载

CreateAsync(String, IList<IConfigurationSource>)

创建新的 silo 并返回一个句柄。

CreateAsync(String, IConfiguration, Action<IHostBuilder>)

创建 silo 句柄。

CreateAsync(String, IList<IConfigurationSource>)

Source:
InProcessSiloHandle.cs

创建新的 silo 并返回一个句柄。

public static System.Threading.Tasks.Task<Orleans.TestingHost.SiloHandle> CreateAsync (string siloName, System.Collections.Generic.IList<Microsoft.Extensions.Configuration.IConfigurationSource> configurationSources);
static member CreateAsync : string * System.Collections.Generic.IList<Microsoft.Extensions.Configuration.IConfigurationSource> -> System.Threading.Tasks.Task<Orleans.TestingHost.SiloHandle>
Public Shared Function CreateAsync (siloName As String, configurationSources As IList(Of IConfigurationSource)) As Task(Of SiloHandle)

参数

siloName
String

新接收器的名称。

返回

适用于

CreateAsync(String, IConfiguration, Action<IHostBuilder>)

创建 silo 句柄。

public static System.Threading.Tasks.Task<Orleans.TestingHost.SiloHandle> CreateAsync (string siloName, Microsoft.Extensions.Configuration.IConfiguration configuration, Action<Microsoft.Extensions.Hosting.IHostBuilder> postConfigureHostBuilder = default);
static member CreateAsync : string * Microsoft.Extensions.Configuration.IConfiguration * Action<Microsoft.Extensions.Hosting.IHostBuilder> -> System.Threading.Tasks.Task<Orleans.TestingHost.SiloHandle>
Public Shared Function CreateAsync (siloName As String, configuration As IConfiguration, Optional postConfigureHostBuilder As Action(Of IHostBuilder) = Nothing) As Task(Of SiloHandle)

参数

siloName
String

silo 的名称。

configuration
IConfiguration

配置。

postConfigureHostBuilder
Action<IHostBuilder>

在生成主机生成器之前调用的可选委托。

返回

silo 句柄。

适用于