TextToSpeechClientBuilderServiceCollectionExtensions.AddKeyedTextToSpeechClient メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
AddKeyedTextToSpeechClient(IServiceCollection, Object, ITextToSpeechClient, ServiceLifetime)
キー付きシングルトン ITextToSpeechClient を IServiceCollectionに登録します。
public static Microsoft.Extensions.AI.TextToSpeechClientBuilder AddKeyedTextToSpeechClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, object? serviceKey, Microsoft.Extensions.AI.ITextToSpeechClient innerClient, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton);
static member AddKeyedTextToSpeechClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj * Microsoft.Extensions.AI.ITextToSpeechClient * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.AI.TextToSpeechClientBuilder
<Extension()>
Public Function AddKeyedTextToSpeechClient (serviceCollection As IServiceCollection, serviceKey As Object, innerClient As ITextToSpeechClient, Optional lifetime As ServiceLifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton) As TextToSpeechClientBuilder
パラメーター
- serviceCollection
- IServiceCollection
クライアントを追加する IServiceCollection 。
- serviceKey
- Object
クライアントを関連付けるキー。
- innerClient
- ITextToSpeechClient
基になるバックエンドを表す内部 ITextToSpeechClient 。
- lifetime
- ServiceLifetime
クライアントのサービスの有効期間。 既定値は Singleton です。
返品
内部クライアントの周囲にパイプラインを構築するために使用できる TextToSpeechClientBuilder 。
注釈
クライアントは、既定でシングルトン サービスとして登録されます。
適用対象
AddKeyedTextToSpeechClient(IServiceCollection, Object, Func<IServiceProvider,ITextToSpeechClient>, ServiceLifetime)
キー付きシングルトン ITextToSpeechClient を IServiceCollectionに登録します。
public static Microsoft.Extensions.AI.TextToSpeechClientBuilder AddKeyedTextToSpeechClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, object? serviceKey, Func<IServiceProvider,Microsoft.Extensions.AI.ITextToSpeechClient> innerClientFactory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton);
static member AddKeyedTextToSpeechClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * obj * Func<IServiceProvider, Microsoft.Extensions.AI.ITextToSpeechClient> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.AI.TextToSpeechClientBuilder
<Extension()>
Public Function AddKeyedTextToSpeechClient (serviceCollection As IServiceCollection, serviceKey As Object, innerClientFactory As Func(Of IServiceProvider, ITextToSpeechClient), Optional lifetime As ServiceLifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton) As TextToSpeechClientBuilder
パラメーター
- serviceCollection
- IServiceCollection
クライアントを追加する IServiceCollection 。
- serviceKey
- Object
クライアントを関連付けるキー。
- innerClientFactory
- Func<IServiceProvider,ITextToSpeechClient>
基になるバックエンドを表す内部 ITextToSpeechClient を生成するコールバック。
- lifetime
- ServiceLifetime
クライアントのサービスの有効期間。 既定値は Singleton です。
返品
内部クライアントの周囲にパイプラインを構築するために使用できる TextToSpeechClientBuilder 。
注釈
クライアントは、既定でシングルトン サービスとして登録されます。