共用方式為


SiloHostBuilder.ConfigureContainer<TContainerBuilder> 方法

定義

能夠設定具現化的相依性容器。 這可以呼叫多次,結果會進行累加。

public Orleans.Hosting.ISiloHostBuilder ConfigureContainer<TContainerBuilder> (Action<Orleans.Hosting.HostBuilderContext,TContainerBuilder> configureDelegate);
abstract member ConfigureContainer : Action<Orleans.Hosting.HostBuilderContext, 'ContainerBuilder> -> Orleans.Hosting.ISiloHostBuilder
override this.ConfigureContainer : Action<Orleans.Hosting.HostBuilderContext, 'ContainerBuilder> -> Orleans.Hosting.ISiloHostBuilder
Public Function ConfigureContainer(Of TContainerBuilder) (configureDelegate As Action(Of HostBuilderContext, TContainerBuilder)) As ISiloHostBuilder

類型參數

TContainerBuilder

參數

configureDelegate
Action<HostBuilderContext,TContainerBuilder>

傳回

用於鏈結之主機產生器的相同實例。

實作

適用於