共用方式為


InProcessSiloHandle.CreateAsync 方法

定義

多載

CreateAsync(String, IList<IConfigurationSource>)

建立新的定址接收器,並傳回它的控制碼。

CreateAsync(String, IConfiguration, Action<IHostBuilder>)

建立定址接收器控制碼。

CreateAsync(String, IList<IConfigurationSource>)

來源:
InProcessSiloHandle.cs

建立新的定址接收器,並傳回它的控制碼。

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

新接收器的名稱。

configurationSources
IList<IConfigurationSource>

組態來源,由 CreateSiloHost(String, IEnumerable<IConfigurationSource>) 解譯。

傳回

適用於

CreateAsync(String, IConfiguration, Action<IHostBuilder>)

建立定址接收器控制碼。

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

定址接收器的名稱。

configuration
IConfiguration

組態。

postConfigureHostBuilder
Action<IHostBuilder>

在建置主機產生器之前叫用的選擇性委派。

傳回

定址接收器控制碼。

適用於