3 instantiations of LoggingSpeechToTextClient
Microsoft.Extensions.AI (1)
SpeechToText\SpeechToTextClientBuilderExtensions.cs (1)
43var audioClient = new LoggingSpeechToTextClient(innerClient, loggerFactory.CreateLogger(typeof(LoggingSpeechToTextClient)));
Microsoft.Extensions.AI.Tests (2)
SpeechToText\LoggingSpeechToTextClientTests.cs (2)
22Assert.Throws<ArgumentNullException>("innerClient", () => new LoggingSpeechToTextClient(null!, NullLogger.Instance)); 23Assert.Throws<ArgumentNullException>("logger", () => new LoggingSpeechToTextClient(new TestSpeechToTextClient(), null!));
13 references to LoggingSpeechToTextClient
Microsoft.Extensions.AI (6)
SpeechToText\LoggingSpeechToTextClient.cs (1)
31/// <summary>Initializes a new instance of the <see cref="LoggingSpeechToTextClient"/> class.</summary>
SpeechToText\SpeechToTextClientBuilderExtensions.cs (5)
13/// <summary>Provides extensions for configuring <see cref="LoggingSpeechToTextClient"/> instances.</summary> 23/// <param name="configure">An optional callback that can be used to configure the <see cref="LoggingSpeechToTextClient"/> instance.</param> 28Action<LoggingSpeechToTextClient>? configure = null) 43var audioClient = new LoggingSpeechToTextClient(innerClient, loggerFactory.CreateLogger(typeof(LoggingSpeechToTextClient)));
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAISpeechToTextClientTests.cs (2)
61Assert.NotNull(pipeline.GetService<LoggingSpeechToTextClient>()); 64Assert.IsType<LoggingSpeechToTextClient>(pipeline.GetService<ISpeechToTextClient>());
Microsoft.Extensions.AI.Tests (5)
SpeechToText\LoggingSpeechToTextClientTests.cs (5)
31Assert.Null(innerClient.AsBuilder().UseLogging(NullLoggerFactory.Instance).Build().GetService(typeof(LoggingSpeechToTextClient))); 35Assert.NotNull(innerClient.AsBuilder().UseLogging(factory).Build().GetService(typeof(LoggingSpeechToTextClient))); 40Assert.NotNull(innerClient.AsBuilder().UseLogging().Build(services).GetService(typeof(LoggingSpeechToTextClient))); 41Assert.NotNull(innerClient.AsBuilder().UseLogging(null).Build(services).GetService(typeof(LoggingSpeechToTextClient))); 42Assert.Null(innerClient.AsBuilder().UseLogging(NullLoggerFactory.Instance).Build(services).GetService(typeof(LoggingSpeechToTextClient)));