I am using Solr.NET within my application. Within the application, I need to connect to two different solr servers. Both of these solr servers return the same type of document, let's call the document type Foo.
Also, I need to use a custom connection so that all queries are always POSTed to solr.
Here is what I have so far:
StartUp.Init<Foo>(new PostOnlyConnection(connectionString1))
StartUp.Init<Foo>(new PostOnlyConnection(connectionString2))
Obviously, the IoC container throws an error on this since the two types are the same. I tried to resolve this issue with the information located in this article, but the Windsor facility does not allow me to pass in a custom connection object, just the connection string. Any ideas?