From 6ce135eded78465220384ea76ff620549a1f8f36 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:47:07 -1000 Subject: [PATCH] R l3 (#103) * update snippets * update snippets --- .../middleware/rate-limit/WebRateLimitAuth/Program.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fundamentals/middleware/rate-limit/WebRateLimitAuth/Program.cs b/fundamentals/middleware/rate-limit/WebRateLimitAuth/Program.cs index 9481745..83c61c4 100644 --- a/fundamentals/middleware/rate-limit/WebRateLimitAuth/Program.cs +++ b/fundamentals/middleware/rate-limit/WebRateLimitAuth/Program.cs @@ -1,4 +1,4 @@ -#define TOKEN // FIRST ADMIN FIXED SLIDING CONCUR TOKEN FIXED2 JWT +#define FIRST // FIRST ADMIN FIXED SLIDING CONCUR TOKEN FIXED2 JWT #if NEVER #elif FIXED // @@ -167,6 +167,8 @@ app.Run(); // #elif FIRST // +// +// Preceding code removed for brevity. using System.Globalization; using System.Net; using System.Threading.RateLimiting; @@ -278,9 +280,6 @@ app.UseStaticFiles(); app.UseRouting(); app.UseRateLimiter(); -// -// Preceding code removed for brevity. - app.UseAuthentication(); app.UseAuthorization();