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