3 instantiations of SpeechToTextClientBuilder
Microsoft.Extensions.AI (3)
SpeechToText\SpeechToTextClientBuilderServiceCollectionExtensions.cs (2)
41
var builder = new
SpeechToTextClientBuilder
(innerClientFactory);
77
var builder = new
SpeechToTextClientBuilder
(innerClientFactory);
SpeechToText\SpeechToTextClientBuilderSpeechToTextClientExtensions.cs (1)
24
return new
SpeechToTextClientBuilder
(innerClient);
33 references to SpeechToTextClientBuilder
Microsoft.Extensions.AI (28)
SpeechToText\ConfigureOptionsSpeechToTextClientBuilderExtensions.cs (3)
19
/// <param name="builder">The <see cref="
SpeechToTextClientBuilder
"/>.</param>
30
public static
SpeechToTextClientBuilder
ConfigureOptions(
31
this
SpeechToTextClientBuilder
builder, Action<SpeechToTextOptions> configure)
SpeechToText\LoggingSpeechToTextClientBuilderExtensions.cs (3)
18
/// <param name="builder">The <see cref="
SpeechToTextClientBuilder
"/>.</param>
33
public static
SpeechToTextClientBuilder
UseLogging(
34
this
SpeechToTextClientBuilder
builder,
SpeechToText\SpeechToTextClientBuilder.cs (7)
20
/// <summary>Initializes a new instance of the <see cref="
SpeechToTextClientBuilder
"/> class.</summary>
28
/// <summary>Initializes a new instance of the <see cref="
SpeechToTextClientBuilder
"/> class.</summary>
53
$"The {nameof(
SpeechToTextClientBuilder
)} entry at index {i} returned null. " +
63
/// <returns>The updated <see cref="
SpeechToTextClientBuilder
"/> instance.</returns>
64
public
SpeechToTextClientBuilder
Use(Func<ISpeechToTextClient, ISpeechToTextClient> clientFactory)
73
/// <returns>The updated <see cref="
SpeechToTextClientBuilder
"/> instance.</returns>
74
public
SpeechToTextClientBuilder
Use(Func<ISpeechToTextClient, IServiceProvider, ISpeechToTextClient> clientFactory)
SpeechToText\SpeechToTextClientBuilderServiceCollectionExtensions.cs (10)
19
/// <returns>A <see cref="
SpeechToTextClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
21
public static
SpeechToTextClientBuilder
AddSpeechToTextClient(
31
/// <returns>A <see cref="
SpeechToTextClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
33
public static
SpeechToTextClientBuilder
AddSpeechToTextClient(
41
var
builder = new SpeechToTextClientBuilder(innerClientFactory);
51
/// <returns>A <see cref="
SpeechToTextClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
53
public static
SpeechToTextClientBuilder
AddKeyedSpeechToTextClient(
65
/// <returns>A <see cref="
SpeechToTextClientBuilder
"/> that can be used to build a pipeline around the inner client.</returns>
67
public static
SpeechToTextClientBuilder
AddKeyedSpeechToTextClient(
77
var
builder = new SpeechToTextClientBuilder(innerClientFactory);
SpeechToText\SpeechToTextClientBuilderSpeechToTextClientExtensions.cs (5)
9
/// <summary>Provides extension methods for working with <see cref="ISpeechToTextClient"/> in the context of <see cref="
SpeechToTextClientBuilder
"/>.</summary>
13
/// <summary>Creates a new <see cref="
SpeechToTextClientBuilder
"/> using <paramref name="innerClient"/> as its inner client.</summary>
15
/// <returns>The new <see cref="
SpeechToTextClientBuilder
"/> instance.</returns>
17
/// This method is equivalent to using the <see cref="
SpeechToTextClientBuilder
"/> constructor directly,
20
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