SpeechToTextClientBuilderServiceCollectionExtensions.AddKeyedSpeechToTextClient メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
AddKeyedSpeechToTextClient(IServiceCollection, Object, ISpeechToTextClient, ServiceLifetime)
キー付きシングルトン 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 です。
返品
内部クライアントの周囲にパイプラインを構築するために使用できる SpeechToTextClientBuilder 。
注釈
クライアントはスコープ付きサービスとして登録されます。
適用対象
AddKeyedSpeechToTextClient(IServiceCollection, Object, Func<IServiceProvider,ISpeechToTextClient>, ServiceLifetime)
キー付きシングルトン 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 です。
返品
内部クライアントの周囲にパイプラインを構築するために使用できる SpeechToTextClientBuilder 。
注釈
クライアントはスコープ付きサービスとして登録されます。