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