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