<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: StructureMap: Basic Scenario Usage</title>
	<atom:link href="http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/</link>
	<description>Software development, testing, and techie life</description>
	<lastBuildDate>Thu, 08 Mar 2012 22:19:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Dale Smith</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-476</link>
		<dc:creator>Dale Smith</dc:creator>
		<pubDate>Sun, 17 Aug 2008 18:49:45 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-476</guid>
		<description>Oops, sorry, blew the URL.  Here it is:

http://creedcultcode.blogspot.com/2008/08/boba-fett-greedo-and-structuremap.html</description>
		<content:encoded><![CDATA[<p>Oops, sorry, blew the URL.  Here it is:</p>
<p><a href="http://creedcultcode.blogspot.com/2008/08/boba-fett-greedo-and-structuremap.html" rel="nofollow">http://creedcultcode.blogspot.com/2008/08/boba-fett-greedo-and-structuremap.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale Smith</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-475</link>
		<dc:creator>Dale Smith</dc:creator>
		<pubDate>Sun, 17 Aug 2008 18:36:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-475</guid>
		<description>Hey Chad,

I swiped some code from Josh and cobbled together my own little StructureMap sample app, but I used StructureMap 2.0 instead of the 2.4.9 preview.  If you want to have a look you can see it here:

&lt;a href=&quot;http://creedcultcode.blogspot.com/2008/08/boba-fett-greedo-and-structuremap.html&quot;&gt;http://creedcultcode.blogspot.com/2008/08/boba-fett-greedo-and-structuremap.html&lt;/a&gt;
</description>
		<content:encoded><![CDATA[<p>Hey Chad,</p>
<p>I swiped some code from Josh and cobbled together my own little StructureMap sample app, but I used StructureMap 2.0 instead of the 2.4.9 preview.  If you want to have a look you can see it here:</p>
<p><a href="http://creedcultcode.blogspot.com/2008/08/boba-fett-greedo-and-structuremap.html">http://creedcultcode.blogspot.com/2008/08/boba-fett-greedo-and-structuremap.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Myers</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-474</link>
		<dc:creator>Chad Myers</dc:creator>
		<pubDate>Mon, 28 Jul 2008 13:11:29 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-474</guid>
		<description>@Robert:  Good point.

I actually meant something like the Principal object or anything that you might need to know about the user.  Some of these things happen every request (think FormsAuthentication and HttpModules, etc).</description>
		<content:encoded><![CDATA[<p>@Robert:  Good point.</p>
<p>I actually meant something like the Principal object or anything that you might need to know about the user.  Some of these things happen every request (think FormsAuthentication and HttpModules, etc).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-473</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Mon, 28 Jul 2008 10:14:05 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-473</guid>
		<description>&quot;StructureMap can create an instance of an object for you and manage it&#039;s life time according to the life of the current Thread or, in an ASP.NET scenario, the life of the current HTTP request.  This is useful for caching things like database connection sessions or user credentials, etc.&quot;

Shouldn&#039;t there be a .CacheBy(InstanceScope.HttpSession) in the case of user credentials? Most sites don&#039;t make you log in for every request ;)</description>
		<content:encoded><![CDATA[<p>&#8220;StructureMap can create an instance of an object for you and manage it&#8217;s life time according to the life of the current Thread or, in an ASP.NET scenario, the life of the current HTTP request.  This is useful for caching things like database connection sessions or user credentials, etc.&#8221;</p>
<p>Shouldn&#8217;t there be a .CacheBy(InstanceScope.HttpSession) in the case of user credentials? Most sites don&#8217;t make you log in for every request ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Myers</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-472</link>
		<dc:creator>Chad Myers</dc:creator>
		<pubDate>Fri, 18 Jul 2008 15:33:58 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-472</guid>
		<description>@David:

StructureMap *CAN* do property injection either via attributed properties ([SetterProperty] or something like that, I forget the exact attribute) or via the .WithProperty() stuff in the examples above.

However, I&#039;d like to strongly discourage you from doing property injection. There are a few scenarios where the debate still rages (some cross-cutting concerns, optional dependencies, etc) but by and large, property injection should be discouraged.</description>
		<content:encoded><![CDATA[<p>@David:</p>
<p>StructureMap *CAN* do property injection either via attributed properties ([SetterProperty] or something like that, I forget the exact attribute) or via the .WithProperty() stuff in the examples above.</p>
<p>However, I&#8217;d like to strongly discourage you from doing property injection. There are a few scenarios where the debate still rages (some cross-cutting concerns, optional dependencies, etc) but by and large, property injection should be discouraged.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Kemp</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-471</link>
		<dc:creator>David Kemp</dc:creator>
		<pubDate>Fri, 18 Jul 2008 15:05:46 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-471</guid>
		<description>The last example -&gt; with version 2.4.9, this seems to only do constructor injection and not property injection (as the name would suggest)? Is this correct?</description>
		<content:encoded><![CDATA[<p>The last example -> with version 2.4.9, this seems to only do constructor injection and not property injection (as the name would suggest)? Is this correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin Jack</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-470</link>
		<dc:creator>Colin Jack</dc:creator>
		<pubDate>Thu, 17 Jul 2008 06:20:36 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-470</guid>
		<description>Excellent stuff, I&#039;m just getting started with StructureMap (been a Castle man up till now) so this sort of content is great.</description>
		<content:encoded><![CDATA[<p>Excellent stuff, I&#8217;m just getting started with StructureMap (been a Castle man up till now) so this sort of content is great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Harman</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-469</link>
		<dc:creator>Steven Harman</dc:creator>
		<pubDate>Wed, 16 Jul 2008 15:30:32 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-469</guid>
		<description>@Shane,
Your stack overflow is likely caused by a circular dependency between two (or more) of the classes that StructureMap is trying to wire up.</description>
		<content:encoded><![CDATA[<p>@Shane,<br />
Your stack overflow is likely caused by a circular dependency between two (or more) of the classes that StructureMap is trying to wire up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Courtrille</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-468</link>
		<dc:creator>Shane Courtrille</dc:creator>
		<pubDate>Wed, 16 Jul 2008 13:38:44 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-468</guid>
		<description>Thanks for this.  I&#039;ve been playing with 2.5 a lot and loving it but the lack of simple documentation has been a bit... frustrating :) 

I&#039;m actually using it exactly how you point out though so I guess in the end I did get it figured out pretty good.  Now if only I could figure out how I got it to stack overflow....</description>
		<content:encoded><![CDATA[<p>Thanks for this.  I&#8217;ve been playing with 2.5 a lot and loving it but the lack of simple documentation has been a bit&#8230; frustrating :) </p>
<p>I&#8217;m actually using it exactly how you point out though so I guess in the end I did get it figured out pretty good.  Now if only I could figure out how I got it to stack overflow&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Myers</title>
		<link>http://lostechies.com/chadmyers/2008/07/16/structuremap-basic-scenario-usage/#comment-467</link>
		<dc:creator>Chad Myers</dc:creator>
		<pubDate>Wed, 16 Jul 2008 13:11:56 +0000</pubDate>
		<guid isPermaLink="false">/blogs/chad_myers/archive/2008/07/15/structuremap-basic-scenario-usage.aspx#comment-467</guid>
		<description>@Rob:  I was planning a few more posts, so please stay tuned.

@Jeremy:  Where does &quot;Instance&lt;Foo&gt;&quot; come from?  That appears to only be valid when you&#039;re in a class that derives from Registry or RegistryExpressions.  What if you&#039;re just in Program.cs or Global.asax.cs?</description>
		<content:encoded><![CDATA[<p>@Rob:  I was planning a few more posts, so please stay tuned.</p>
<p>@Jeremy:  Where does &#8220;Instance<foo>&#8221; come from?  That appears to only be valid when you&#8217;re in a class that derives from Registry or RegistryExpressions.  What if you&#8217;re just in Program.cs or Global.asax.cs?</foo></p>
]]></content:encoded>
	</item>
</channel>
</rss>
