C# HttpClient specify which cookie container to use on a per request basis

Viewed 466

Is there a way to send requests through HttpClient such that each request/response is linked to a given cookie container? Or some other technique that would allow for cookies to be managed in a user defined way, ie username/pw, for a particular domain name.

The current way I do it is to instantiate a new Httpclient class for every username/login, but was wondering if there was a more elegant way.

1 Answers
Related