I am trying to implement RateLimiter in my code but I see RateLimiter did not work.
After working a couple of days I realised that RateLimiter Extension is not working as expected.
When I use WebApplicationBuilder it works.
The following code which uses WebApplicationBuilderworks fine.
Is there an existing issue for this?
Describe the bug
I am trying to implement RateLimiter in my code but I see RateLimiter did not work. After working a couple of days I realised that RateLimiter Extension is not working as expected.
When I use
WebApplicationBuilder
it works. The following code which usesWebApplicationBuilder
works fine.In the following code where I use
IHost/IHostBuilder
, RateLimiter did not work:Expected Behavior
RateLimiter should work with IHostBuilder and IHost.
Steps To Reproduce
Create a .netcore application where It is using IHostBuilder and IHost as Application Host and apply RateLimiter as shown in above code.
Exceptions (if any)
No response
.NET Version
7.0.307
Anything else?
No response