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