8 writes to Weight
Microsoft.Extensions.Http.Resilience (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (2)
476instance.Weight = ParseInt(value67, () => configuration.GetSection("Weight").Path); 480instance.Weight = default;
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;
3 references to Weight
Microsoft.Extensions.Http.Resilience (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Validators.g.cs (1)
464if (!global::System.ComponentModel.DataAnnotations.Validator.TryValidateValue(options.Weight, context, validationResults, validationAttributes))
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!;