9 references to GetResilienceContext
Microsoft.Extensions.Http.Resilience (1)
Resilience\ResilienceHandler.cs (1)
150if (request.GetResilienceContext() is not ResilienceContext context)
Microsoft.Extensions.Http.Resilience.Tests (8)
Hedging\HedgingTests.cs (2)
254request.GetResilienceContext().Should().Be(originalContext); 351RequestContexts.Add(request.GetResilienceContext());
Resilience\ResilienceHandlerTest.cs (6)
45request.GetResilienceContext()! 53request.GetResilienceContext().Should().BeNull(); 81Assert.NotNull(request.GetResilienceContext()); 85Assert.Null(request.GetResilienceContext()); 109r.GetResilienceContext().Should().NotBeNull(); 110r.GetResilienceContext()!.GetRequestMessage().Should().BeSameAs(r);