11 references to RequestMessageSnapshot
Microsoft.Extensions.Http.Resilience (8)
Hedging\Internals\RequestMessageSnapshotStrategy.cs (2)
30using var snapshot = RequestMessageSnapshot.Create(request);
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (1)
86if (!args.PrimaryContext.Properties.TryGetValue(ResilienceKeys.RequestSnapshot, out var snapshot))
Internal\RequestMessageSnapshot.cs (4)
15private static readonly ObjectPool<RequestMessageSnapshot> _snapshots = PoolFactory.CreateResettingPool<RequestMessageSnapshot>(); 25public static RequestMessageSnapshot Create(HttpRequestMessage request) 27var snapshot = _snapshots.Get();
Internal\ResilienceKeys.cs (1)
17public static readonly ResiliencePropertyKey<RequestMessageSnapshot> RequestSnapshot = new("Resilience.Http.Snapshot");
Microsoft.Extensions.Http.Resilience.Tests (3)
Hedging\StandardHedgingTests.cs (1)
122using var snapshot = RequestMessageSnapshot.Create(request);
Resilience\RequestMessageSnapshotTests.cs (2)
37using var snapshot = RequestMessageSnapshot.Create(request); 46using var snapshot = RequestMessageSnapshot.Create(request);