1 instantiation of OrderedGroupsRoutingStrategy
Microsoft.Extensions.Http.Resilience (1)
Routing\Internal\OrderedGroups\OrderedGroupsRoutingStrategyFactory.cs (1)
32
OrderedGroupsRoutingStrategy IPooledObjectPolicy<OrderedGroupsRoutingStrategy>.Create() =>
new
(_randomizer, _pool);
10 references to OrderedGroupsRoutingStrategy
Microsoft.Extensions.Http.Resilience (10)
Routing\Internal\OrderedGroups\OrderedGroupsRoutingStrategy.cs (2)
15
private readonly ObjectPool<
OrderedGroupsRoutingStrategy
> _pool;
19
public OrderedGroupsRoutingStrategy(Randomizer randomizer, ObjectPool<
OrderedGroupsRoutingStrategy
> pool)
Routing\Internal\OrderedGroups\OrderedGroupsRoutingStrategyFactory.cs (8)
10
internal sealed class OrderedGroupsRoutingStrategyFactory : IPooledObjectPolicy<
OrderedGroupsRoutingStrategy
>
14
private readonly ObjectPool<
OrderedGroupsRoutingStrategy
> _pool;
25
public
OrderedGroupsRoutingStrategy
Get()
27
var
strategy = _pool.Get();
32
OrderedGroupsRoutingStrategy
IPooledObjectPolicy<
OrderedGroupsRoutingStrategy
>.Create() => new(_randomizer, _pool);
34
bool IPooledObjectPolicy<
OrderedGroupsRoutingStrategy
>.Return(
OrderedGroupsRoutingStrategy
obj) => obj.TryReset();