Jan 17, 2011 at 7:04 AM
Edited Jan 17, 2011 at 7:32 AM
Not yet John, as I really wanted to get it out the door. But ContactManagerConfiguration is actually using it. If you look under the hood you will see that it implements various interfaces. As a convenience when the config class is created it looks to see
if any of the interfaces are implemented and then if they are, it calls the correct methods to add the implementation to the config collections.
I am planning to get a sample done soon which I will probably initially put on my blog. But just for now to put you on the right path....
HttpHostConfiguration is not abstract, and it has several builder methods.
Basically you can do something like this
var config = new HttpHostConfiguration().
Currently these methods are overloaded to accept instances and delegates, but I am thinking to refactor to also have generic overloads like SetInstanceFactory<T>().