73ee0302ef723f14f024e8f3fb9e7396ec3d2583
Introduced a `SemaphoreSlim` with a concurrency limit of 5 to control the number of simultaneous HTTP requests. Updated the HTTP request logic to use `WaitAsync` and `Release` for managing access to the critical section. Wrapped the HTTP request handling in a `try-finally` block to ensure proper semaphore release, even in case of exceptions. This change improves resource management and prevents overwhelming the HTTP client or the target server.
Description
Languages
C#
100%