SpeechToTextClientBuilderServiceCollectionExtensions.AddKeyedSpeechToTextClient メソッド

定義

オーバーロード

AddKeyedSpeechToTextClient(IServiceCollection, Object, ISpeechToTextClient, ServiceLifetime)

ソース:
SpeechToTextClientBuilderServiceCollectionExtensions.cs

キー付きシングルトン ISpeechToTextClientIServiceCollectionに登録します。

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 です。

返品

内部クライアントの周囲にパイプラインを構築するために使用できる SpeechToTextClientBuilder

注釈

クライアントはスコープ付きサービスとして登録されます。

適用対象

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

ソース:
SpeechToTextClientBuilderServiceCollectionExtensions.cs

キー付きシングルトン ISpeechToTextClientIServiceCollectionに登録します。

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 です。

返品

内部クライアントの周囲にパイプラインを構築するために使用できる SpeechToTextClientBuilder

注釈

クライアントはスコープ付きサービスとして登録されます。

適用対象