10 instantiations of WeightedUriEndpoint
Microsoft.Extensions.Http.Resilience.PerformanceTests (4)
HttpClientFactory.cs (4)
88new WeightedUriEndpoint 92new WeightedUriEndpoint 111new WeightedUriEndpoint 115new WeightedUriEndpoint
Microsoft.Extensions.Http.Resilience.Tests (6)
Hedging\StandardHedgingTests.cs (2)
317Endpoints = [new WeightedUriEndpoint { Uri = new Uri($"https://{FailingEndpoint}:3000") }] 322Endpoints = [new WeightedUriEndpoint { Uri = new Uri("https://microsoft.com") }]
Routing\OrderedRoutingStrategyTest.cs (3)
62CreateGroup(new WeightedUriEndpoint { Uri = new Uri("https://b/"), Weight = 20 }), 70options.Groups.Add(CreateGroup(new WeightedUriEndpoint { Uri = new Uri("https://c/"), Weight = 30 })); 109return CreateGroup(endpoints.Select(v => new WeightedUriEndpoint { Uri = new Uri(v) }).ToArray());
Routing\WeightedRoutingStrategyTest.cs (1)
169return CreateGroup(endpoints.Select(v => new WeightedUriEndpoint { Uri = new Uri(v) }).ToArray());
5 references to WeightedUriEndpoint
Microsoft.Extensions.Http.Resilience (3)
Routing\UriEndpointGroup.cs (3)
10/// Represents a collection of <see cref="WeightedUriEndpoint"/>. 30public IList<WeightedUriEndpoint> Endpoints { get; set; } = new List<WeightedUriEndpoint>();
Microsoft.Extensions.Http.Resilience.Tests (2)
Routing\OrderedRoutingStrategyTest.cs (1)
112private static UriEndpointGroup CreateGroup(params WeightedUriEndpoint[] endpoint)
Routing\WeightedRoutingStrategyTest.cs (1)
172private static WeightedUriEndpointGroup CreateGroup(params WeightedUriEndpoint[] endpoint)