I am reusing same HttpClient throughout the application. But i have to set different headers for different users.
I have referred this post : HttpClient single instance with different authentication headers
When I implemented this approach and runs code concurrently, like this : Parallel.For(0, 3, i => { // HttpClient Call } Thread overrides each other data. Could you please let me know how to fix it ?
Thanks in Advance.