8 references to GetRequestMessage
Microsoft.Extensions.Http.Resilience (3)
Hedging\Internals\RequestMessageSnapshotStrategy.cs (1)
23HttpRequestMessage? request = context.GetRequestMessage();
Resilience\ResilienceHandler.cs (1)
169=> context.GetRequestMessage() ?? request;
Routing\Internal\RoutingResilienceStrategy.cs (1)
30HttpRequestMessage? request = context.GetRequestMessage();
Microsoft.Extensions.Http.Resilience.Tests (5)
Resilience\HttpResilienceContextExtensionsTests.cs (4)
18Assert.Throws<ArgumentNullException>(context.GetRequestMessage); 26Assert.Null(context.GetRequestMessage()); 35Assert.Null(context.GetRequestMessage()); 45Assert.Same(request, context.GetRequestMessage());
Resilience\ResilienceHandlerTest.cs (1)
110r.GetResilienceContext()!.GetRequestMessage().Should().BeSameAs(r);