3 instantiations of SpeechToTextClientBuilder
Microsoft.Extensions.AI (3)
SpeechToText\SpeechToTextClientBuilderServiceCollectionExtensions.cs (2)
42
var builder = new
SpeechToTextClientBuilder
(innerClientFactory);
77
var builder = new
SpeechToTextClientBuilder
(innerClientFactory);
SpeechToText\SpeechToTextClientBuilderSpeechToTextClientExtensions.cs (1)
25
return new
SpeechToTextClientBuilder
(innerClient);
36 references to SpeechToTextClientBuilder
Microsoft.Extensions.AI (31)
SpeechToText\ConfigureOptionsSpeechToTextClientBuilderExtensions.cs (3)
18
/// <param name="builder">The <see cref="
SpeechToTextClientBuilder
"/>.</param>
29
public static
SpeechToTextClientBuilder
ConfigureOptions(
30
this
SpeechToTextClientBuilder
builder, Action<SpeechToTextOptions> configure)
SpeechToText\LoggingSpeechToTextClientBuilderExtensions.cs (3)
19
/// <param name="builder">The <see cref="
SpeechToTextClientBuilder
"/>.</param>
34
public static
SpeechToTextClientBuilder
UseLogging(
35
this
SpeechToTextClientBuilder
builder,
SpeechToText\OpenTelemetrySpeechToTextClientBuilderExtensions.cs (3)
24
/// <param name="builder">The <see cref="
SpeechToTextClientBuilder
"/>.</param>
29
public static
SpeechToTextClientBuilder
UseOpenTelemetry(
30
this
SpeechToTextClientBuilder
builder,
SpeechToText\SpeechToTextClientBuilder.cs (7)
21
/// <summary>Initializes a new instance of the <see cref="
SpeechToTextClientBuilder
"/> class.</summary>
29
/// <summary>Initializes a new instance of the <see cref="
SpeechToTextClientBuilder
"/> class.</summary>
54
$"The {nameof(
SpeechToTextClientBuilder
)} entry at index {i} returned null. " +
64
/// <returns>The updated <see cref="
SpeechToTextClientBuilder
"/> instance.</returns>
65
public
SpeechToTextClientBuilder
Use(Func<ISpeechToTextClient, ISpeechToTextClient> clientFactory)
74
/// <returns>The updated <see cref="
SpeechToTextClientBuilder
"/> instance.</returns>
75
public
SpeechToTextClientBuilder
Use(Func<ISpeechToTextClient, IServiceProvider, ISpeechToTextClient> clientFactory)
SpeechToText\SpeechToTextClientBuilderServiceCollectionExtensions.cs (10)
20
/// <returns>A <see cref="
SpeechToTextClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
22
public static
SpeechToTextClientBuilder
AddSpeechToTextClient(
32
/// <returns>A <see cref="
SpeechToTextClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
34
public static
SpeechToTextClientBuilder
AddSpeechToTextClient(
42
var
builder = new SpeechToTextClientBuilder(innerClientFactory);
52
/// <returns>A <see cref="
SpeechToTextClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
54
public static
SpeechToTextClientBuilder
AddKeyedSpeechToTextClient(
66
/// <returns>A <see cref="
SpeechToTextClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
68
public static
SpeechToTextClientBuilder
AddKeyedSpeechToTextClient(
77
var
builder = new SpeechToTextClientBuilder(innerClientFactory);
SpeechToText\SpeechToTextClientBuilderSpeechToTextClientExtensions.cs (5)
10
/// <summary>Provides extension methods for working with <see cref="ISpeechToTextClient"/> in the context of <see cref="
SpeechToTextClientBuilder
"/>.</summary>
14
/// <summary>Creates a new <see cref="
SpeechToTextClientBuilder
"/> using <paramref name="innerClient"/> as its inner client.</summary>
16
/// <returns>The new <see cref="
SpeechToTextClientBuilder
"/> instance.</returns>
18
/// This method is equivalent to using the <see cref="
SpeechToTextClientBuilder
"/> constructor directly,
21
public static
SpeechToTextClientBuilder
AsBuilder(this ISpeechToTextClient innerClient)
Microsoft.Extensions.AI.Tests (5)
SpeechToText\ConfigureOptionsSpeechToTextClientTests.cs (1)
27
var
builder = innerClient.AsBuilder();
SpeechToText\SingletonSpeechToTextClientExtensions.cs (2)
8
public static
SpeechToTextClientBuilder
UseSingletonMiddleware(this
SpeechToTextClientBuilder
builder)
SpeechToText\SpeechToTextClientDependencyInjectionPatterns.cs (2)
121
SpeechToTextClientBuilder
builder = lifetime.HasValue
143
SpeechToTextClientBuilder
builder = lifetime.HasValue