Discussions

Ask a Question
Back to All

RateLimitBuilder does not contain a definition

Hey,
I'm trying to use your API (newest release) on ASPNet.Core but I kinda can't get it to work.
I keep getting the following error message when I copy&paste the text into the Startup.cs file at the correct spot.

Error CS1061 "RateLimitBuilder" does not contain a definition for "EnableStaticApiCaching" and could not find an EnableStaticApiCaching extension method that accepts a first argument of the RateLimitBuilder type (possibly a using directive or an assembly reference).

It also shows the same message for the definition "StaticApiCacheExpiry", "EnableCustomApiCaching" and "AddCacheRule".

How can I fix this issue?
Kind regards