Instead of using Thread.Sleep(seconds) we need to migrate toward using polling via the Polly library. This is going to help with resource management and also follow the async/await approach.
This includes adding retry logic to where necessary. This is applicable to the operations that wrap async API and provide a sync version of it.
Instead of using
Thread.Sleep(seconds)
we need to migrate toward using polling via the Polly library. This is going to help with resource management and also follow the async/await approach.This includes adding retry logic to where necessary. This is applicable to the operations that wrap async API and provide a sync version of it.