InProcessSiloHandle.CreateAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateAsync(String, IList<IConfigurationSource>) |
建立新的定址接收器,並傳回它的控制碼。 |
CreateAsync(String, IConfiguration, Action<IHostBuilder>) |
建立定址接收器控制碼。 |
CreateAsync(String, IList<IConfigurationSource>)
建立新的定址接收器,並傳回它的控制碼。
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>
在建置主機產生器之前叫用的選擇性委派。
傳回
定址接收器控制碼。