6 writes to Weight
Microsoft.Extensions.Http.Resilience.Tests (6)
Routing\OrderedRoutingStrategyTest.cs (4)
62CreateGroup(new WeightedUriEndpoint { Uri = new Uri("https://b/"), Weight = 20 }), 70options.Groups.Add(CreateGroup(new WeightedUriEndpoint { Uri = new Uri("https://c/"), Weight = 30 })); 90group.Endpoints.Single().Weight = 0; 97group.Endpoints.Single().Weight = 99999;
Routing\WeightedRoutingStrategyTest.cs (2)
134group.Endpoints.Single().Weight = 0; 146group.Endpoints.Single().Weight = 99999;
2 references to Weight
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!;