<?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; IoC</title>
	<atom:link href="http://www.larswilhelmsen.com/category/ioc/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</generator>
		<item>
		<title>Tinyject &#8211; IoC in an Evening</title>
		<link>http://www.larswilhelmsen.com/2008/10/09/tinyject-ioc-in-an-evening/</link>
		<comments>http://www.larswilhelmsen.com/2008/10/09/tinyject-ioc-in-an-evening/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 15:52:33 +0000</pubDate>
		<dc:creator>larsw</dc:creator>
				<category><![CDATA[IoC]]></category>
		<category><![CDATA[Pet+Projects]]></category>
		<category><![CDATA[Tinyject]]></category>

		<guid isPermaLink="false">http://larsw.wordpress.com/2008/10/09/tinyject-ioc-in-an-evening/</guid>
		<description><![CDATA[Last night, while hacking on the Aggressive project, I where in the need of a container. My initial idea was to try out Autofac, but since I was offline at the moment, I quickly hacked together a small container myself. Since I actually thought the look&#38;feel of the interface was exactly what I wanted, I [...]]]></description>
			<content:encoded><![CDATA[<p>Last night, while hacking on the <a href="http://www.codeplex.com/Aggressive" target="_blank">Aggressive project</a>, I where in the need of a container. My initial idea was to try out <a href="http://code.google.com/p/autofac" target="_blank">Autofac</a>, but since I was offline at the moment, I quickly hacked together a small container myself. Since I actually thought the look&amp;feel of the interface was exactly what I wanted, I decided to put the source code in a separate project and give it a name; Tinyject. The code can be found <a href="http://larsw-public.s3.amazonaws.com/LarsW.Tinyject-1.0.zip" target="_blank">here</a> and is licensed under&#160; the <a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">Apache License 2.0</a>.</p>
<p>Features:</p>
<ul>
<li>A <strong>Register()</strong> method in different flavors (including generic versions) for registering concrete types &amp; interfaces in the type map.       <br />The Register() methods return <em>this</em>, so they can be chained. </li>
<li>A <strong>Resolve()</strong> method in different flavors (including generic versions) for resolving new and existing instances of registered types. </li>
<li>An idea of instance lifetime; Transient &amp; Singleton. </li>
<li>Property, field and constructor injection. </li>
<li>The container implements System.IDisposable, and can be used in a using() { … } scope. </li>
<li>A static, thread-safe wrapper, TinyjectStatic. </li>
<li>A small number of xUnit-based unit tests to check the integrity of the stuff. </li>
</ul>
<p>That’s it. At the moment there is no configuration system – and no extensibility points, but I believe the 2.0 version – maybe developed tonight after the baby swimming, will contain a simple extensible configuration model.</p>
<p>If anyone want to design a logo for it – please go ahead <img src='http://www.larswilhelmsen.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p> <a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2flarswilhelmsen.com%2f2008%2f10%2f09%2ftinyject-ioc-in-an-evening%2f"><img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2flarswilhelmsen.com%2f2008%2f10%2f09%2ftinyject-ioc-in-an-evening%2f" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larswilhelmsen.com/2008/10/09/tinyject-ioc-in-an-evening/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Product / Idea Backlog</title>
		<link>http://www.larswilhelmsen.com/2008/10/01/my-product-idea-backlog/</link>
		<comments>http://www.larswilhelmsen.com/2008/10/01/my-product-idea-backlog/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 20:17:01 +0000</pubDate>
		<dc:creator>larsw</dc:creator>
				<category><![CDATA[CodePlex]]></category>
		<category><![CDATA[IoC]]></category>
		<category><![CDATA[Pet+Projects]]></category>
		<category><![CDATA[Silverlight]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[CodePlex; Pet+Projects; Silverlight; WCF]]></category>

		<guid isPermaLink="false">http://larsw.wordpress.com/2008/10/01/my-product-idea-backlog/</guid>
		<description><![CDATA[This post is a work in progress. I feel that I need a place to organize all my pet projects, whether they still only exist in my head or have materialized into some code. Miles Platform Active Directory FOAF Gateway – internal beta Active Directory Photo Uploader – internal beta MOAT (Meaning Of A Tag) [...]]]></description>
			<content:encoded><![CDATA[<p>This post is a work in progress. I feel that I need a place to organize all my pet projects, whether they still only exist in my head or have materialized into some code.</p>
<ul>
<li>
<h4>Miles Platform</h4>
<ul>
<li>Active Directory FOAF Gateway – internal beta</li>
<li>Active Directory Photo Uploader – internal beta</li>
<li>MOAT (Meaning Of A Tag) service / client &#8211; idea</li>
<li>Internal Library service / client &#8211; prototype</li>
</ul>
</li>
<li>
<h4>WCF related</h4>
<ul>
<li>ChunkingChannelEx &#8211; bug fixing</li>
<li>XMPP Transport Channel – research/inception stage.</li>
<li><a target="_blank" href="http://larswilhelmsen.com/2008/10/04/wcf-test-client-extended/">WCF Test Client Extended!</a> </li>
</ul>
</li>
<li>
<h4>Miscellaneous</h4>
<ul>
<li><a target="_blank" href="http://www.codeplex.com/Aggressive">Agressive</a> &#8211; Silverlight-based, lightweight Time Management System – planning/prototyping stage.</li>
<li>Visual Studio Theme Explorer – planning phase.</li>
<li>Tinyject – A tiny IoC/DI container in about 200 lines of C#.</li>
</ul>
</li>
</ul>
<p>The idea is to release as many of these under a liberal open license &#8211; probably hosted on CodePlex or a similar service.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larswilhelmsen.com/2008/10/01/my-product-idea-backlog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
