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