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