I am trying to use the solrnet library to connect to my solr instance through a proxy server and I am not having any luck. Does anyone know if this is possible and if so how?
EDIT: I tried to do this using the configuration option as specified by Mauricio Scheffer but ran into an error on try to build the project. After resolving the related issue regarding the project being stored on NAS, I have implemented Mauricio's IHttpWebRequestFactory solution and it works perfectly
Cheers,
Ed
You can either:
<defaultProxy>
in your config (which defines a global proxy), orHttpWebAdapters.IHttpWebRequestFactory
(included in SolrNet) and make your implementation return a IHttpWebRequest
with the Proxy
property set to whatever your need, then register your IHttpWebRequestFactory
implementation in your IoC container.