10 writes to Uri
Microsoft.Extensions.Http.Resilience.PerformanceTests (4)
HttpClientFactory.cs (4)
90Uri = new Uri(PrimaryEndpoint) 94Uri = new Uri(SecondaryEndpoint) 113Uri = new Uri(PrimaryEndpoint) 117Uri = new Uri(SecondaryEndpoint)
Microsoft.Extensions.Http.Resilience.Tests (6)
Hedging\StandardHedgingTests.cs (2)
317Endpoints = [new WeightedUriEndpoint { Uri = new Uri($"https://{FailingEndpoint}:3000") }] 322Endpoints = [new WeightedUriEndpoint { Uri = new Uri("https://microsoft.com") }]
Routing\OrderedRoutingStrategyTest.cs (3)
62CreateGroup(new WeightedUriEndpoint { Uri = new Uri("https://b/"), Weight = 20 }), 70options.Groups.Add(CreateGroup(new WeightedUriEndpoint { Uri = new Uri("https://c/"), Weight = 30 })); 109return CreateGroup(endpoints.Select(v => new WeightedUriEndpoint { Uri = new Uri(v) }).ToArray());
Routing\WeightedRoutingStrategyTest.cs (1)
169return CreateGroup(endpoints.Select(v => new WeightedUriEndpoint { Uri = new Uri(v) }).ToArray());
2 references to Uri
Microsoft.Extensions.Http.Resilience (2)
Routing\Internal\OrderedGroups\OrderedGroupsRoutingStrategy.cs (1)
41nextRoute = group!.Endpoints.SelectByWeight(e => e.Weight, Randomizer!).Uri!;
Routing\Internal\WeightedGroups\WeightedGroupsRoutingStrategy.cs (1)
57nextRoute = group!.Endpoints.SelectByWeight(e => e.Weight, Randomizer).Uri!;