3 instantiations of TextToSpeechClientBuilder
Microsoft.Extensions.AI (3)
TextToSpeech\TextToSpeechClientBuilderServiceCollectionExtensions.cs (2)
46
var builder = new
TextToSpeechClientBuilder
(innerClientFactory);
85
var builder = new
TextToSpeechClientBuilder
(innerClientFactory);
TextToSpeech\TextToSpeechClientBuilderTextToSpeechClientExtensions.cs (1)
25
return new
TextToSpeechClientBuilder
(innerClient);
36 references to TextToSpeechClientBuilder
Microsoft.Extensions.AI (31)
TextToSpeech\ConfigureOptionsTextToSpeechClientBuilderExtensions.cs (3)
18
/// <param name="builder">The <see cref="
TextToSpeechClientBuilder
"/>.</param>
29
public static
TextToSpeechClientBuilder
ConfigureOptions(
30
this
TextToSpeechClientBuilder
builder, Action<TextToSpeechOptions> configure)
TextToSpeech\LoggingTextToSpeechClientBuilderExtensions.cs (3)
19
/// <param name="builder">The <see cref="
TextToSpeechClientBuilder
"/>.</param>
34
public static
TextToSpeechClientBuilder
UseLogging(
35
this
TextToSpeechClientBuilder
builder,
TextToSpeech\OpenTelemetryTextToSpeechClientBuilderExtensions.cs (3)
24
/// <param name="builder">The <see cref="
TextToSpeechClientBuilder
"/>.</param>
29
public static
TextToSpeechClientBuilder
UseOpenTelemetry(
30
this
TextToSpeechClientBuilder
builder,
TextToSpeech\TextToSpeechClientBuilder.cs (7)
21
/// <summary>Initializes a new instance of the <see cref="
TextToSpeechClientBuilder
"/> class.</summary>
29
/// <summary>Initializes a new instance of the <see cref="
TextToSpeechClientBuilder
"/> class.</summary>
54
$"The {nameof(
TextToSpeechClientBuilder
)} entry at index {i} returned null. " +
64
/// <returns>The updated <see cref="
TextToSpeechClientBuilder
"/> instance.</returns>
65
public
TextToSpeechClientBuilder
Use(Func<ITextToSpeechClient, ITextToSpeechClient> clientFactory)
74
/// <returns>The updated <see cref="
TextToSpeechClientBuilder
"/> instance.</returns>
75
public
TextToSpeechClientBuilder
Use(Func<ITextToSpeechClient, IServiceProvider, ITextToSpeechClient> clientFactory)
TextToSpeech\TextToSpeechClientBuilderServiceCollectionExtensions.cs (10)
20
/// <returns>A <see cref="
TextToSpeechClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
22
public static
TextToSpeechClientBuilder
AddTextToSpeechClient(
36
/// <returns>A <see cref="
TextToSpeechClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
38
public static
TextToSpeechClientBuilder
AddTextToSpeechClient(
46
var
builder = new TextToSpeechClientBuilder(innerClientFactory);
56
/// <returns>A <see cref="
TextToSpeechClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
58
public static
TextToSpeechClientBuilder
AddKeyedTextToSpeechClient(
74
/// <returns>A <see cref="
TextToSpeechClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
76
public static
TextToSpeechClientBuilder
AddKeyedTextToSpeechClient(
85
var
builder = new TextToSpeechClientBuilder(innerClientFactory);
TextToSpeech\TextToSpeechClientBuilderTextToSpeechClientExtensions.cs (5)
10
/// <summary>Provides extension methods for working with <see cref="ITextToSpeechClient"/> in the context of <see cref="
TextToSpeechClientBuilder
"/>.</summary>
14
/// <summary>Creates a new <see cref="
TextToSpeechClientBuilder
"/> using <paramref name="innerClient"/> as its inner client.</summary>
16
/// <returns>The new <see cref="
TextToSpeechClientBuilder
"/> instance.</returns>
18
/// This method is equivalent to using the <see cref="
TextToSpeechClientBuilder
"/> constructor directly,
21
public static
TextToSpeechClientBuilder
AsBuilder(this ITextToSpeechClient innerClient)
Microsoft.Extensions.AI.Tests (5)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (1)
26
var
builder = innerClient.AsBuilder();
TextToSpeech\SingletonTextToSpeechClientExtensions.cs (2)
8
public static
TextToSpeechClientBuilder
UseSingletonMiddleware(this
TextToSpeechClientBuilder
builder)
TextToSpeech\TextToSpeechClientDependencyInjectionPatterns.cs (2)
121
TextToSpeechClientBuilder
builder = lifetime.HasValue
143
TextToSpeechClientBuilder
builder = lifetime.HasValue