Condividi tramite


InProcessSiloHandle.CreateAsync Metodo

Definizione

Overload

CreateAsync(String, IList<IConfigurationSource>)

Crea un nuovo silo e restituisce un handle.

CreateAsync(String, IConfiguration, Action<IHostBuilder>)

Creare un handle silo.

CreateAsync(String, IList<IConfigurationSource>)

Origine:
InProcessSiloHandle.cs

Crea un nuovo silo e restituisce un handle.

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)

Parametri

siloName
String

Nome del nuovo silo.

configurationSources
IList<IConfigurationSource>

Origini di configurazione interpretate da CreateSiloHost(String, IEnumerable<IConfigurationSource>).

Restituisce

Si applica a

CreateAsync(String, IConfiguration, Action<IHostBuilder>)

Creare un handle 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)

Parametri

siloName
String

Nome del silo.

configuration
IConfiguration

Configurazione.

postConfigureHostBuilder
Action<IHostBuilder>

Delegato facoltativo richiamato poco prima di compilare il generatore host.

Restituisce

Handle silo.

Si applica a