InProcessSiloHandle.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateAsync(String, IList<IConfigurationSource>) |
Creates a new silo and returns a handle to it. |
CreateAsync(String, IConfiguration, Action<IHostBuilder>) |
Create a silo handle. |
CreateAsync(String, IList<IConfigurationSource>)
- Source:
- InProcessSiloHandle.cs
Creates a new silo and returns a handle to it.
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)
Parameters
- siloName
- String
The name for the new silo.
- configurationSources
- IList<IConfigurationSource>
The configuration sources, interpreted by CreateSiloHost(String, IEnumerable<IConfigurationSource>).
Returns
Applies to
CreateAsync(String, IConfiguration, Action<IHostBuilder>)
Create a silo handle.
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)
Parameters
- siloName
- String
Name of the silo.
- configuration
- IConfiguration
The configuration.
- postConfigureHostBuilder
- Action<IHostBuilder>
An optional delegate which is invoked just prior to building the host builder.
Returns
The silo handle.