<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lars Wilhelmsen &#187; Unity</title>
	<atom:link href="http://www.larswilhelmsen.com/category/unity/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.larswilhelmsen.com</link>
	<description>Microsoft Connected Systems MVP</description>
	<lastBuildDate>Tue, 22 Jun 2010 08:24:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Unity 1.1 Container Behavior for WCF</title>
		<link>http://www.larswilhelmsen.com/2008/07/02/unity-11-container-behavior-for-wcf/</link>
		<comments>http://www.larswilhelmsen.com/2008/07/02/unity-11-container-behavior-for-wcf/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 20:35:46 +0000</pubDate>
		<dc:creator>larsw</dc:creator>
				<category><![CDATA[IoC]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Unity]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://larsw.wordpress.com/?p=22</guid>
		<description><![CDATA[Some time ago I needed a way to wire up an IoC container in a WCF service I was creating at that time. Since I’ve used ObjectBuilder-based containers a lot in both Composite UI Application Block and Enterprise Library, I wanted to take a closer look at the Unity container and the 2.0 version of [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago I needed a way to wire up an <a href="http://martinfowler.com/articles/injection.html" target="_blank">IoC</a> container in a WCF service I was creating at that time. Since I’ve used ObjectBuilder-based containers a lot in both Composite UI Application Block and Enterprise Library, I wanted to take a closer look at the <a href="http://www.codeplex.com/unity" target="_blank">Unity container</a> and the 2.0 version of <a href="http://www.codeplex.com/ObjectBuilder" target="_blank">ObjectBuilder</a>.</p>
<p>To manage the creation of service instances, you have to implement the <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.dispatcher.iinstanceprovider.aspx" target="_blank">IInstanceProvider</a><strong></strong> interface, and wire up the concrete type in a service behavior.</p>
<p>The code should be fairly documented, and a simple xUnit.NET test project is included. If you want to check out xUnit.NET, check out its <a href="http://www.codeplex.com/xunit" target="_blank">CodePlex site</a>.</p>
<p>I’ve put the code on a new resource page on <a href="http://code.msdn.microsoft.com/" target="_blank">code.msdn.microsoft.com</a> that I have created WCF Resources. You can find the release <a href="http://code.msdn.microsoft.com/WCFResources/Release/ProjectReleases.aspx?ReleaseId=1252" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larswilhelmsen.com/2008/07/02/unity-11-container-behavior-for-wcf/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
