In C #, I call a public API that has an API limit of 10 calls per second. The API has several methods, different users can call different methods at a time, therefore, there is a possibility that a "speed limit" can be achieved.
I have the following class structure:
public class MyServiceManager { public int Method1() { } public void Method2() { } public string Method3() { } }
Several users can call different methods at the same time. How can I maintain a static call queue or task so that I can control all requests and entertain just 10 requests in one second
multithreading c # task-parallel-library task
Asad khan
source share