load balancer middle ware test and cake mac osx build script

This commit is contained in:
Tom Gardham-Pallister
2017-02-02 22:34:46 +00:00
parent 07ca7989b0
commit f2c6d1c799
4 changed files with 108 additions and 4 deletions

View File

@ -64,7 +64,6 @@ namespace Ocelot.DependencyInjection
services.AddSingleton<Ocelot.ServiceDiscovery.IServiceProviderFactory, Ocelot.ServiceDiscovery.IServiceProviderFactory>();
services.AddSingleton<ILoadBalancerFactory, ILoadBalancerFactory>();
services.AddSingleton<ILoadBalancerHouse, LoadBalancerHouse>();
services.AddSingleton<IServiceProviderHouse, ServiceProviderHouse>();
services.AddSingleton<IOcelotLoggerFactory, AspDotNetLoggerFactory>();
services.AddSingleton<IUrlBuilder, UrlBuilder>();
services.AddSingleton<IRemoveOutputHeaders, RemoveOutputHeaders>();

View File

@ -29,7 +29,7 @@ namespace Ocelot.LoadBalancer.Middleware
public async Task Invoke(HttpContext context)
{
_logger.LogDebug("started calling query string builder middleware");
_logger.LogDebug("started calling load balancing middleware");
var loadBalancer = _loadBalancerHouse.Get($"{DownstreamRoute.ReRoute.UpstreamTemplate}{DownstreamRoute.ReRoute.UpstreamHttpMethod}");
//todo check reponse and return error