Skip to content

Commit 3560bb9

Browse files
committed
Fix warnings
1 parent 90a5f3e commit 3560bb9

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

src/Ocelot/Middleware/OcelotPipelineConfiguration.cs

+6-11
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,15 @@ public class OcelotPipelineConfiguration
3636
public Func<HttpContext, Func<Task>, Task> AuthenticationMiddleware { get; set; }
3737

3838
/// <summary>
39-
/// This is to allow the user to run any extra authentication after the Ocelot authentication
40-
/// kicks in
39+
/// This is to allow the user to run any extra authentication after the Ocelot authentication kicks in.
4140
/// </summary>
4241
/// <value>
43-
/// <placeholder>This is to allow the user to run any extra authentication after the Ocelot authentication
44-
/// kicks in</placeholder>
42+
/// A <see cref="Func{HttpContext, TFunc, Task}"/> delegate object.
4543
/// </value>
4644
public Func<HttpContext, Func<Task>, Task> AfterAuthenticationMiddleware { get; set; }
4745

4846
/// <summary>
49-
/// This is to allow the user to run any extra authorization before the Ocelot authentication
50-
/// kicks in
47+
/// This is to allow the user to run any extra authorization before the Ocelot authentication kicks in.
5148
/// </summary>
5249
/// <value>
5350
/// A <see cref="Func{HttpContext, TFunc, Task}"/> delegate object.
@@ -63,17 +60,15 @@ public class OcelotPipelineConfiguration
6360
public Func<HttpContext, Func<Task>, Task> AuthorizationMiddleware { get; set; }
6461

6562
/// <summary>
66-
/// This is to allow the user to run any extra authorization after the Ocelot authentication
67-
/// kicks in
63+
/// This is to allow the user to run any extra authorization after the Ocelot authorization kicks in.
6864
/// </summary>
6965
/// <value>
70-
/// <placeholder>This is to allow the user to run any extra authorization after the Ocelot authentication
71-
/// kicks in</placeholder>
66+
/// A <see cref="Func{HttpContext, TFunc, Task}"/> delegate object.
7267
/// </value>
7368
public Func<HttpContext, Func<Task>, Task> AfterAuthorizationMiddleware { get; set; }
7469

7570
/// <summary>
76-
/// This allows the user to implement there own query string manipulation logic
71+
/// This allows the user to implement there own query string manipulation logic.
7772
/// </summary>
7873
/// <value>
7974
/// A <see cref="Func{HttpContext, TFunc, Task}"/> delegate object.

test/Ocelot.AcceptanceTests/CustomMiddlewareTests.cs

+10-10
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ public void should_call_after_authorization_middleware()
263263
{
264264
var configuration = new OcelotPipelineConfiguration
265265
{
266-
AfterAuthorizationMiddleware = async (ctx, next) =>
266+
AfterAuthorizationMiddleware = async (ctx, next) =>
267267
{
268268
_counter++;
269269
await next.Invoke();
270-
}
270+
},
271271
};
272272

273273
var port = RandomPortFinder.GetRandomPort();
@@ -285,13 +285,13 @@ public void should_call_after_authorization_middleware()
285285
{
286286
Host = "localhost",
287287
Port = port,
288-
}
288+
},
289289
},
290290
DownstreamScheme = "http",
291291
UpstreamPathTemplate = "/",
292292
UpstreamHttpMethod = new List<string> { "Get" },
293-
}
294-
}
293+
},
294+
},
295295
};
296296

297297
this.Given(x => x.GivenThereIsAServiceRunningOn($"http://localhost:{port}", 200, ""))
@@ -353,11 +353,11 @@ public void should_call_after_http_authentication_middleware()
353353
{
354354
var configuration = new OcelotPipelineConfiguration
355355
{
356-
AfterAuthenticationMiddleware = async (ctx, next) =>
356+
AfterAuthenticationMiddleware = async (ctx, next) =>
357357
{
358358
_counter++;
359359
await next.Invoke();
360-
}
360+
},
361361
};
362362

363363
var port = RandomPortFinder.GetRandomPort();
@@ -375,13 +375,13 @@ public void should_call_after_http_authentication_middleware()
375375
{
376376
Host = "localhost",
377377
Port = port,
378-
}
378+
},
379379
},
380380
DownstreamScheme = "http",
381381
UpstreamPathTemplate = "/",
382382
UpstreamHttpMethod = new List<string> { "Get" },
383-
}
384-
}
383+
},
384+
},
385385
};
386386

387387
this.Given(x => x.GivenThereIsAServiceRunningOn($"http://localhost:{port}", 200, ""))

0 commit comments

Comments
 (0)