diff --git a/src/Ocelot/Middleware/OcelotPipelineConfiguration.cs b/src/Ocelot/Middleware/OcelotPipelineConfiguration.cs index a5f055795..4456be422 100644 --- a/src/Ocelot/Middleware/OcelotPipelineConfiguration.cs +++ b/src/Ocelot/Middleware/OcelotPipelineConfiguration.cs @@ -36,18 +36,15 @@ public class OcelotPipelineConfiguration public Func, Task> AuthenticationMiddleware { get; set; } /// - /// This is to allow the user to run any extra authentication after the Ocelot authentication - /// kicks in + /// This is to allow the user to run any extra authentication after the Ocelot authentication kicks in. /// /// - /// This is to allow the user to run any extra authentication after the Ocelot authentication - /// kicks in + /// A delegate object. /// public Func, Task> AfterAuthenticationMiddleware { get; set; } /// - /// This is to allow the user to run any extra authorization before the Ocelot authentication - /// kicks in + /// This is to allow the user to run any extra authorization before the Ocelot authentication kicks in. /// /// /// A delegate object. @@ -63,17 +60,15 @@ public class OcelotPipelineConfiguration public Func, Task> AuthorizationMiddleware { get; set; } /// - /// This is to allow the user to run any extra authorization after the Ocelot authentication - /// kicks in + /// This is to allow the user to run any extra authorization after the Ocelot authorization kicks in. /// /// - /// This is to allow the user to run any extra authorization after the Ocelot authentication - /// kicks in + /// A delegate object. /// public Func, Task> AfterAuthorizationMiddleware { get; set; } /// - /// This allows the user to implement there own query string manipulation logic + /// This allows the user to implement there own query string manipulation logic. /// /// /// A delegate object. diff --git a/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs b/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs index 40a3ab435..fdde708f7 100644 --- a/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs +++ b/test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs @@ -263,11 +263,11 @@ public void should_call_after_authorization_middleware() { var configuration = new OcelotPipelineConfiguration { - AfterAuthorizationMiddleware = async (ctx, next) => + AfterAuthorizationMiddleware = async (ctx, next) => { _counter++; await next.Invoke(); - } + }, }; var port = RandomPortFinder.GetRandomPort(); @@ -285,13 +285,13 @@ public void should_call_after_authorization_middleware() { Host = "localhost", Port = port, - } + }, }, DownstreamScheme = "http", UpstreamPathTemplate = "/", UpstreamHttpMethod = new List { "Get" }, - } - } + }, + }, }; this.Given(x => x.GivenThereIsAServiceRunningOn($"http://localhost:{port}", 200, "")) @@ -353,11 +353,11 @@ public void should_call_after_http_authentication_middleware() { var configuration = new OcelotPipelineConfiguration { - AfterAuthenticationMiddleware = async (ctx, next) => + AfterAuthenticationMiddleware = async (ctx, next) => { _counter++; await next.Invoke(); - } + }, }; var port = RandomPortFinder.GetRandomPort(); @@ -375,13 +375,13 @@ public void should_call_after_http_authentication_middleware() { Host = "localhost", Port = port, - } + }, }, DownstreamScheme = "http", UpstreamPathTemplate = "/", UpstreamHttpMethod = new List { "Get" }, - } - } + }, + }, }; this.Given(x => x.GivenThereIsAServiceRunningOn($"http://localhost:{port}", 200, ""))