6 writes to Weight
Microsoft.Extensions.Http.Resilience.Tests (6)
Routing\OrderedRoutingStrategyTest.cs (4)
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 }));
90
group.Endpoints.Single().
Weight
= 0;
97
group.Endpoints.Single().
Weight
= 99999;
Routing\WeightedRoutingStrategyTest.cs (2)
134
group.Endpoints.Single().
Weight
= 0;
146
group.Endpoints.Single().
Weight
= 99999;
2 references to Weight
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!;