11 references to ThrowHelper
Microsoft.Extensions.AI.OpenAI (11)
src\Shared\ServerSentEvents\SseFormatter.cs (5)
34ThrowHelper.ThrowArgumentNullException(nameof(source)); 39ThrowHelper.ThrowArgumentNullException(nameof(destination)); 58ThrowHelper.ThrowArgumentNullException(nameof(source)); 63ThrowHelper.ThrowArgumentNullException(nameof(destination)); 68ThrowHelper.ThrowArgumentNullException(nameof(itemFormatter));
src\Shared\ServerSentEvents\SseItem.cs (3)
34ThrowHelper.ThrowArgumentException_CannotContainLineBreaks(nameof(eventType)); 56ThrowHelper.ThrowArgumentException_CannotContainLineBreaks(nameof(EventId)); 74ThrowHelper.ThrowArgumentException_CannotBeNegative(nameof(ReconnectionInterval));
src\Shared\ServerSentEvents\SseParser.cs (2)
42ThrowHelper.ThrowArgumentNullException(nameof(sseStream)); 47ThrowHelper.ThrowArgumentNullException(nameof(itemParser));
src\Shared\ServerSentEvents\SseParser_1.cs (1)
485ThrowHelper.ThrowInvalidOperationException_EnumerateOnlyOnce();