다음을 통해 공유


NamedServiceConfiguratorExtensions.ConfigureComponent 메서드

정의

오버로드

ConfigureComponent<TComponent>(INamedServiceConfigurator, Func<IServiceProvider,String,TComponent>)

명명된 서비스에 싱글톤 구성 요소를 추가합니다.

ConfigureComponent<TOptions,TComponent>(INamedServiceConfigurator, Func<IServiceProvider,String,TComponent>, Action<OptionsBuilder<TOptions>>)

명명된 서비스에 싱글톤 구성 요소를 추가하고 명명된 서비스에 대한 옵션을 구성합니다.

ConfigureComponent<TComponent>(INamedServiceConfigurator, Func<IServiceProvider,String,TComponent>)

Source:
NamedServiceConfigurator.cs

명명된 서비스에 싱글톤 구성 요소를 추가합니다.

public static void ConfigureComponent<TComponent> (this Orleans.Hosting.INamedServiceConfigurator configurator, Func<IServiceProvider,string,TComponent> factory) where TComponent : class;
static member ConfigureComponent : Orleans.Hosting.INamedServiceConfigurator * Func<IServiceProvider, string, 'Component (requires 'Component : null)> -> unit (requires 'Component : null)
<Extension()>
Public Sub ConfigureComponent(Of TComponent As Class) (configurator As INamedServiceConfigurator, factory As Func(Of IServiceProvider, String, TComponent))

형식 매개 변수

TComponent

구성 요소 서비스 유형입니다.

매개 변수

configurator
INamedServiceConfigurator

구성 요소가 구성될 명명된 구성 요소입니다.

factory
Func<IServiceProvider,String,TComponent>

명명된 서비스에 대한 구성 요소를 만드는 데 사용되는 팩터리입니다.

적용 대상

ConfigureComponent<TOptions,TComponent>(INamedServiceConfigurator, Func<IServiceProvider,String,TComponent>, Action<OptionsBuilder<TOptions>>)

Source:
NamedServiceConfigurator.cs

명명된 서비스에 싱글톤 구성 요소를 추가하고 명명된 서비스에 대한 옵션을 구성합니다.

public static void ConfigureComponent<TOptions,TComponent> (this Orleans.Hosting.INamedServiceConfigurator configurator, Func<IServiceProvider,string,TComponent> factory, Action<Microsoft.Extensions.Options.OptionsBuilder<TOptions>> configureOptions = default) where TOptions : class, new() where TComponent : class;
static member ConfigureComponent : Orleans.Hosting.INamedServiceConfigurator * Func<IServiceProvider, string, 'Component (requires 'Component : null)> * Action<Microsoft.Extensions.Options.OptionsBuilder<'Options>> -> unit (requires 'Options : null and 'Options : (new : unit -> 'Options) and 'Component : null)
<Extension()>
Public Sub ConfigureComponent(Of TOptions As {Class, New}, TComponent As {Class, New}) (configurator As INamedServiceConfigurator, factory As Func(Of IServiceProvider, String, TComponent), Optional configureOptions As Action(Of OptionsBuilder(Of TOptions)) = Nothing)

형식 매개 변수

TOptions

구성 중인 옵션 유형입니다.

TComponent

등록할 구성 요소 서비스 유형입니다.

매개 변수

configurator
INamedServiceConfigurator

구성 요소 및 옵션을 구성할 명명된 구성 요소입니다.

factory
Func<IServiceProvider,String,TComponent>

명명된 서비스에 대한 구성 요소를 만드는 데 사용되는 팩터리입니다.

configureOptions
Action<OptionsBuilder<TOptions>>

명명된 서비스에 대한 옵션을 구성하는 데 사용되는 대리자입니다.

적용 대상