1 write to Exception
Microsoft.Extensions.AI (1)
ChatRouting\FailoverChatClientAttempt.cs (1)
52Exception = exception;
19 references to Exception
Microsoft.Extensions.AI (4)
ChatRouting\FailoverChatClientAttempt.cs (3)
16/// <see cref="Exception"/> set to <see langword="null"/>. 20/// <see cref="Exception"/> set to the observed exception. If a streaming caller stops enumerating before the 22/// <see cref="Exception"/> are unset.
ChatRouting\OrderedFailoverChatClient.cs (1)
97Exception? exception = attempt.Exception;
Microsoft.Extensions.AI.Tests (15)
ChatRouting\FailoverChatClientTests.cs (15)
140Assert.Same(invocationException, update.attempt.Exception); 190Assert.Same(invocationException, attempt!.Exception); 356Assert.Same(expected, observed.Exception); 399Assert.Equal("failed", Assert.IsType<InvalidOperationException>(failedAttempt.Exception).Message); 405Assert.Null(terminalAttempt.Exception); 506Assert.Null(terminalAttempt!.Exception); 551Assert.Same(failure, attempt!.Exception); 631Assert.Same(exception, observed!.Exception); 734Assert.IsType<InvalidOperationException>(observed!.Exception); 919Assert.Same(currentException, failedAttempt!.Exception); 1007Assert.Same(disposalException, failedAttempt!.Exception); 1053Assert.Same(exception, observed!.Exception); 1084Assert.Null(observed!.Exception); 1104Assert.Null(attempt.Exception); 1138Assert.Null(observed!.Exception);