From 5b417ad466386c92298e1f4b77d9c1942fb9afb0 Mon Sep 17 00:00:00 2001 From: Tom Gardham-Pallister Date: Sun, 10 Jul 2016 15:54:03 +0100 Subject: [PATCH] plugged in proxy and still working..not seeing weird error from earlier --- src/Ocelot/Startup.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Ocelot/Startup.cs b/src/Ocelot/Startup.cs index 8d284c04..83cc57a8 100644 --- a/src/Ocelot/Startup.cs +++ b/src/Ocelot/Startup.cs @@ -4,6 +4,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; +using Ocelot.Library.Middleware; namespace Ocelot { @@ -32,9 +33,11 @@ namespace Ocelot public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); - + loggerFactory.AddDebug(); + app.UseProxy(); + app.Run(async context => { await context.Response.WriteAsync("Hello from Tom");