#349 default to no load balancer so that in load balaner house we dont always rebuild the loadbalancer infrastructure because the load balancer options type is null (#358)

This commit is contained in:
Tom Pallister
2018-05-15 18:29:35 +01:00
committed by GitHub
parent 1e2e953b2c
commit 061a90f1dd
2 changed files with 20 additions and 1 deletions

View File

@ -1,10 +1,12 @@
using Ocelot.LoadBalancer.LoadBalancers;
namespace Ocelot.Configuration
{
public class LoadBalancerOptions
{
public LoadBalancerOptions(string type, string key, int expiryInMs)
{
Type = type;
Type = type ?? nameof(NoLoadBalancer);
Key = key;
ExpiryInMs = expiryInMs;
}