{"id":5402,"date":"2014-03-30T21:34:22","date_gmt":"2014-03-30T21:34:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/unity-and-dynamic-wcf-proxies-collection-of-common-programming-errors\/"},"modified":"2014-03-30T21:34:22","modified_gmt":"2014-03-30T21:34:22","slug":"unity-and-dynamic-wcf-proxies-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/unity-and-dynamic-wcf-proxies-collection-of-common-programming-errors\/","title":{"rendered":"Unity and dynamic WCF proxies-Collection of common programming errors"},"content":{"rendered":"<p>Is there any way to have unity inject the proxies to WCF services dynamically at runtime? Specifically, I&#8217;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&#8217;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?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Is there any way to have unity inject the proxies to WCF services dynamically at runtime? Specifically, I&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5402","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5402"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5402\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}