GenericHostExtensions.UseOrleans 方法

定义

重载

UseOrleans(IHostBuilder, Action<HostBuilderContext,ISiloBuilder>)

将主机生成器配置为托管新奥尔良孤岛。

UseOrleans(IHostBuilder, Action<ISiloBuilder>)

将主机生成器配置为托管新奥尔良孤岛。

UseOrleans(IHostBuilder, Action<HostBuilderContext,ISiloBuilder>)

Source:
GenericHostExtensions.cs

将主机生成器配置为托管新奥尔良孤岛。

public static Microsoft.Extensions.Hosting.IHostBuilder UseOrleans (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Orleans.Hosting.ISiloBuilder> configureDelegate);
static member UseOrleans : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Orleans.Hosting.ISiloBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseOrleans (hostBuilder As IHostBuilder, configureDelegate As Action(Of HostBuilderContext, ISiloBuilder)) As IHostBuilder

参数

hostBuilder
IHostBuilder

主机生成器。

configureDelegate
Action<HostBuilderContext,ISiloBuilder>

用于配置接收器的委托。

返回

主机生成器。

注解

在同 IHostBuilder 一实例上多次调用此方法将导致配置一个接收器。 但是,将为每个调用应用一次效果 configureDelegate

适用于

UseOrleans(IHostBuilder, Action<ISiloBuilder>)

Source:
GenericHostExtensions.cs

将主机生成器配置为托管新奥尔良孤岛。

public static Microsoft.Extensions.Hosting.IHostBuilder UseOrleans (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Orleans.Hosting.ISiloBuilder> configureDelegate);
static member UseOrleans : Microsoft.Extensions.Hosting.IHostBuilder * Action<Orleans.Hosting.ISiloBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseOrleans (hostBuilder As IHostBuilder, configureDelegate As Action(Of ISiloBuilder)) As IHostBuilder

参数

hostBuilder
IHostBuilder

主机生成器。

configureDelegate
Action<ISiloBuilder>

用于配置接收器的委托。

返回

主机生成器。

注解

在同 IHostBuilder 一实例上多次调用此方法将导致配置一个接收器。 但是,将为每个调用应用一次效果 configureDelegate

适用于