19 references to Properties
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (1)
28IDictionary<string, object> properties = httpRequestMessage.Properties;
Microsoft.AspNetCore.Http.Connections.Client (2)
HttpConnection.cs (1)
477request.Properties.Add("IsNegotiate", true);
Internal\AccessTokenHttpMessageHandler.cs (1)
30request.Properties.TryGetValue("IsNegotiate", out var value) && value is true
Microsoft.Extensions.Http.Polly (5)
HttpRequestMessageExtensions.cs (2)
36request.Properties.TryGetValue(PolicyExecutionContextKey, out var context); 57request.Properties[PolicyExecutionContextKey] = context;
PolicyHttpMessageHandler.cs (3)
163if (request.Properties.TryGetValue(PriorResponseKey, out var priorResult) && priorResult is IDisposable disposable) 166request.Properties.Remove(PriorResponseKey); 172request.Properties[PriorResponseKey] = result;
Microsoft.Extensions.Http.Polly.Tests (5)
HttpRequestMessageExtensionsTest.cs (5)
19request.Properties[HttpRequestMessageExtensions.PolicyExecutionContextKey] = expected; 50request.Properties[HttpRequestMessageExtensions.PolicyExecutionContextKey] = null; 74var actual = request.Properties[HttpRequestMessageExtensions.PolicyExecutionContextKey]; 89request.Properties[HttpRequestMessageExtensions.PolicyExecutionContextKey] = new Context(Guid.NewGuid().ToString()); 99var actual = request.Properties[HttpRequestMessageExtensions.PolicyExecutionContextKey];
Microsoft.Extensions.Http.Resilience.Tests (6)
Resilience\RequestMessageSnapshotTests.cs (6)
48request.Properties["some-new-prop"] = "ABC"; 50cloned.Properties.Should().NotContainKey("some-new-prop"); 64initialRequest.Properties.Add("A", "A"); 65initialRequest.Properties.Add("B", "B"); 86cloned.Properties["A"].Should().Be("A"); 87cloned.Properties["B"].Should().Be("B");