Skip to content

Commit

Permalink
remove unnecessary demo configuration fixes stefanprodan#218
Browse files Browse the repository at this point in the history
  • Loading branch information
cristipufu committed Jun 14, 2021
1 parent 59add4b commit 1c7315a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/AspNetCoreRateLimit.Demo/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ public Startup(IConfiguration configuration)
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
// needed to load configuration from appsettings.json
services.AddOptions();

// needed to store rate limit counters and ip rules
services.AddMemoryCache();

// configure ip rate limiting middleware - version 4.0

// configure client rate limiting middleware - version 4.0

// configure ip rate limiting middleware
services.Configure<IpRateLimitOptions>(Configuration.GetSection("IpRateLimiting"));
services.Configure<IpRateLimitPolicies>(Configuration.GetSection("IpRateLimitPolicies"));
Expand Down

0 comments on commit 1c7315a

Please sign in to comment.