stefanprodan / WebApiThrottle

ASP.NET Web API rate limiter for IIS and Owin hosting
MIT License
1.28k stars 275 forks source link

The class 'WebApiThrottle.ThrottlingMiddleware' does not have a constructor taking 5 arguments. #63

Closed meywd closed 8 years ago

meywd commented 8 years ago

I am using the ThrottlingMiddleware and I get the following error

The class 'WebApiThrottle.ThrottlingMiddleware' does not have a constructor taking 5 arguments.

app.Use(typeof(ThrottlingMiddleware),
                new ThrottlePolicy(perSecond: 5, perMinute: 120, perHour: 700, perDay: 10000)
                {
                    IpThrottling = true,
                    ClientThrottling = true,
                    EndpointThrottling = true,
                },
                new PolicyCacheRepository(),
                new CacheRepository(),
                null);