InProcessSiloHandle.CreateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
新接收器的名称。
- configurationSources
- IList<IConfigurationSource>
配置源,由 CreateSiloHost(String, IEnumerable<IConfigurationSource>)解释。
返回
适用于
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 句柄。