Unity and dynamic WCF proxies-Collection of common programming errors
Is there any way to have unity inject the proxies to WCF services dynamically at runtime? Specifically, I’d like to be able to do a Resolve call on the ServiceContract interface and have it look to the unity config for a service URL, dynamically build the proxy (easy enough with codedom) and have it cache (singleton?) that proxy for future calls. I’ve found plenty of samples to inject a pre-referenced client proxy, and plenty of dynamic proxy implementations, but nothing that seems to close the gap.. Has anyone does this? Any sample code I can glance at?