SpeechToTextClientBuilderServiceCollectionExtensions.AddKeyedSpeechToTextClient 메서드

정의

오버로드

AddKeyedSpeechToTextClient(IServiceCollection, Object, ISpeechToTextClient, ServiceLifetime)

Source:
SpeechToTextClientBuilderServiceCollectionExtensions.cs

에 키 지정된 싱글톤 ISpeechToTextClient 을 등록합니다 IServiceCollection.

public static Microsoft.Extensions.AI.SpeechToTextClientBuilder AddKeyedSpeechToTextClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, object? serviceKey, Microsoft.Extensions.AI.ISpeechToTextClient innerClient, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton);
static member AddKeyedSpeechToTextClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj * Microsoft.Extensions.AI.ISpeechToTextClient * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.AI.SpeechToTextClientBuilder
<Extension()>
Public Function AddKeyedSpeechToTextClient (serviceCollection As IServiceCollection, serviceKey As Object, innerClient As ISpeechToTextClient, Optional lifetime As ServiceLifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton) As SpeechToTextClientBuilder

매개 변수

serviceCollection
IServiceCollection

IServiceCollection 클라이언트를 추가해야 하는 경우입니다.

serviceKey
Object

클라이언트를 연결할 키입니다.

innerClient
ISpeechToTextClient

내부 백 엔드를 나타내는 내부 ISpeechToTextClient 입니다.

lifetime
ServiceLifetime

클라이언트의 서비스 수명입니다. 기본값은 Singleton입니다.

반품

내부 클라이언트를 중심으로 파이프라인을 빌드하는 데 사용할 수 있는 A SpeechToTextClientBuilder 입니다.

설명

클라이언트는 범위가 지정된 서비스로 등록됩니다.

적용 대상

AddKeyedSpeechToTextClient(IServiceCollection, Object, Func<IServiceProvider,ISpeechToTextClient>, ServiceLifetime)

Source:
SpeechToTextClientBuilderServiceCollectionExtensions.cs

에 키 지정된 싱글톤 ISpeechToTextClient 을 등록합니다 IServiceCollection.

public static Microsoft.Extensions.AI.SpeechToTextClientBuilder AddKeyedSpeechToTextClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, object? serviceKey, Func<IServiceProvider,Microsoft.Extensions.AI.ISpeechToTextClient> innerClientFactory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton);
static member AddKeyedSpeechToTextClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj * Func<IServiceProvider, Microsoft.Extensions.AI.ISpeechToTextClient> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.AI.SpeechToTextClientBuilder
<Extension()>
Public Function AddKeyedSpeechToTextClient (serviceCollection As IServiceCollection, serviceKey As Object, innerClientFactory As Func(Of IServiceProvider, ISpeechToTextClient), Optional lifetime As ServiceLifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton) As SpeechToTextClientBuilder

매개 변수

serviceCollection
IServiceCollection

IServiceCollection 클라이언트를 추가해야 하는 경우입니다.

serviceKey
Object

클라이언트를 연결할 키입니다.

innerClientFactory
Func<IServiceProvider,ISpeechToTextClient>

내부 백 엔드를 나타내는 내부 ISpeechToTextClient 를 생성하는 콜백입니다.

lifetime
ServiceLifetime

클라이언트의 서비스 수명입니다. 기본값은 Singleton입니다.

반품

내부 클라이언트를 중심으로 파이프라인을 빌드하는 데 사용할 수 있는 A SpeechToTextClientBuilder 입니다.

설명

클라이언트는 범위가 지정된 서비스로 등록됩니다.

적용 대상