Partager via


InProcessSiloHandle.CreateAsync Méthode

Définition

Surcharges

CreateAsync(String, IList<IConfigurationSource>)

Crée un silo et lui retourne un handle.

CreateAsync(String, IConfiguration, Action<IHostBuilder>)

Créez un handle de silo.

CreateAsync(String, IList<IConfigurationSource>)

Source:
InProcessSiloHandle.cs

Crée un silo et lui retourne 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)

Paramètres

siloName
String

Nom du nouveau silo.

configurationSources
IList<IConfigurationSource>

Les sources de configuration, interprétées par CreateSiloHost(String, IEnumerable<IConfigurationSource>).

Retours

S’applique à

CreateAsync(String, IConfiguration, Action<IHostBuilder>)

Créez un handle de 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)

Paramètres

siloName
String

Nom du silo.

configuration
IConfiguration

Configuration.

postConfigureHostBuilder
Action<IHostBuilder>

Délégué facultatif appelé juste avant la génération du générateur d’hôte.

Retours

Poignée de silo.

S’applique à