Is there some way to build my own connection pool.
I'm developing an application which's connecting to a server. Each time it needs to ask for someting to server, it creates a connection and release it.
I'd like to provide a transparent way to get a connection from a pool of them.
I'm using RestSharp to build my requests:
var client = new RestClient("http://example.com");
var request = new RestRequest("resource/{id}", Method.POST);
request.AddParameter("name", "value");
request.AddUrlSegment("id", "123");
// easily add HTTP Headers
request.AddHeader("header", "value");
// execute the request
IRestResponse response = client.Execute(request);
var content = response.Content;
So, perhaps the question would be aroung how to create a pool for RestSharp? Or, How to configure RestSharp for getting connections from a pool?