<?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: Unity and AOP in enterprise library</title>
	<atom:link href="http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/</link>
	<description>Wrecks of code floating in the sea of Internet By Ricci Gian Maria</description>
	<lastBuildDate>Thu, 09 Feb 2012 16:15:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: alkampfer</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/comment-page-1/#comment-3311</link>
		<dc:creator>alkampfer</dc:creator>
		<pubDate>Fri, 13 Aug 2010 07:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/#comment-3311</guid>
		<description>For some strange reason IIS stopped to serve the .7z file :) now I fixed the problem, Try download again the sample and sorry for the inconvenience.

alk.</description>
		<content:encoded><![CDATA[<p>For some strange reason IIS stopped to serve the .7z file <img src='http://www.codewrecks.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  now I fixed the problem, Try download again the sample and sorry for the inconvenience.</p>
<p>alk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prionic</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/comment-page-1/#comment-3310</link>
		<dc:creator>prionic</dc:creator>
		<pubDate>Fri, 13 Aug 2010 05:52:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/#comment-3310</guid>
		<description>The link you provide to download the code sample comes up as a 404... Can you please provide that sample code once more?</description>
		<content:encoded><![CDATA[<p>The link you provide to download the code sample comes up as a 404&#8230; Can you please provide that sample code once more?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tphelps</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/comment-page-1/#comment-2656</link>
		<dc:creator>tphelps</dc:creator>
		<pubDate>Thu, 03 Sep 2009 23:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/#comment-2656</guid>
		<description>That did it.

Thanks very much for all your great work on this!</description>
		<content:encoded><![CDATA[<p>That did it.</p>
<p>Thanks very much for all your great work on this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alkampfer</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/comment-page-1/#comment-2655</link>
		<dc:creator>alkampfer</dc:creator>
		<pubDate>Thu, 03 Sep 2009 12:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/#comment-2655</guid>
		<description>Dear tphelps, thanks a lot for pointing out those errors. I edited your comment because it contains the full stack trace and is really long.

I&#039;ve updated the code and now everything should work. The problem was originated by the fact that, for some configuration, entlib requires yoru ICallHandler to have a constructor that accepts a NameValueCollection parameter, now I inserted those constructor, and a default one (that is needed for some of the example). I&#039;ve also corrected configuration file, because now the MyLogHandler has more than one constructor.

Moreover the example is a little bit messy, I&#039;ve tried to clean a little, but is a long time I do not work anymore with unity, (I ususally use castle, I&#039;ve used unity in a project already started with unity).

Hope everything is now ok.

Alk.</description>
		<content:encoded><![CDATA[<p>Dear tphelps, thanks a lot for pointing out those errors. I edited your comment because it contains the full stack trace and is really long.</p>
<p>I&#8217;ve updated the code and now everything should work. The problem was originated by the fact that, for some configuration, entlib requires yoru ICallHandler to have a constructor that accepts a NameValueCollection parameter, now I inserted those constructor, and a default one (that is needed for some of the example). I&#8217;ve also corrected configuration file, because now the MyLogHandler has more than one constructor.</p>
<p>Moreover the example is a little bit messy, I&#8217;ve tried to clean a little, but is a long time I do not work anymore with unity, (I ususally use castle, I&#8217;ve used unity in a project already started with unity).</p>
<p>Hope everything is now ok.</p>
<p>Alk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tphelps</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/comment-page-1/#comment-2652</link>
		<dc:creator>tphelps</dc:creator>
		<pubDate>Wed, 02 Sep 2009 23:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/#comment-2652</guid>
		<description>I think I got the latest version of the code; however, when I run the SimpleWithAOP method at the line that reads

ITest wrapped = Microsoft.Practices.EnterpriseLibrary.PolicyInjection.PolicyInjection.Wrap(test1);

I get the following error:
[Edited by alkampfer]

Any help would be greatly appreciated.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>I think I got the latest version of the code; however, when I run the SimpleWithAOP method at the line that reads</p>
<p>ITest wrapped = Microsoft.Practices.EnterpriseLibrary.PolicyInjection.PolicyInjection.Wrap(test1);</p>
<p>I get the following error:<br />
[Edited by alkampfer]</p>
<p>Any help would be greatly appreciated.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alkampfer</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/comment-page-1/#comment-2206</link>
		<dc:creator>alkampfer</dc:creator>
		<pubDate>Wed, 15 Apr 2009 10:04:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/#comment-2206</guid>
		<description>Sorry for the sample, I used the same file for both the configurations and I commented in and out some parts, this makes the overall sample not so clear.
If you go into this subversion repository
 http://nablasoft.googlecode.com/svn/trunk/Various/Unity 
you can find an updated version of the sample where I created two configuration file, one to configure interception in code, the other to configure interception only with configuration file. I hope this sample will be clearer.

Hope to have time to make a better sample with different configurations and more comments.

Alk.</description>
		<content:encoded><![CDATA[<p>Sorry for the sample, I used the same file for both the configurations and I commented in and out some parts, this makes the overall sample not so clear.<br />
If you go into this subversion repository<br />
 <a href="http://nablasoft.googlecode.com/svn/trunk/Various/Unity" rel="nofollow">http://nablasoft.googlecode.co.....ious/Unity</a><br />
you can find an updated version of the sample where I created two configuration file, one to configure interception in code, the other to configure interception only with configuration file. I hope this sample will be clearer.</p>
<p>Hope to have time to make a better sample with different configurations and more comments.</p>
<p>Alk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent-Philippe Lauzon</title>
		<link>http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/comment-page-1/#comment-2200</link>
		<dc:creator>Vincent-Philippe Lauzon</dc:creator>
		<pubDate>Tue, 14 Apr 2009 21:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.codewrecks.com/blog/index.php/2009/01/31/unity-and-aop-in-enterprise-library/#comment-2200</guid>
		<description>Hi,


I am looking at the sample code you&#039;ve provided.  I&#039;m looking for samples (since I didn&#039;t find complete documentation) on how to integration policies inside unity configuration.

I noticed you did that in &quot;UnityConfiguration.xml&quot; but commented it out.  You then go and do the integration using the API.

What I&#039;m looking for is a way to encapsulate the policies in the Unity configuration so we can simply instantiate the unity container and resolve an instance without &quot;configuring&quot; in code (e.g. .AddPolicy).

Do you know how to do that?  Reading Unity documentation, it seems to be possible but I couldn&#039;t find a sample doing it.


Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am looking at the sample code you&#8217;ve provided.  I&#8217;m looking for samples (since I didn&#8217;t find complete documentation) on how to integration policies inside unity configuration.</p>
<p>I noticed you did that in &#8220;UnityConfiguration.xml&#8221; but commented it out.  You then go and do the integration using the API.</p>
<p>What I&#8217;m looking for is a way to encapsulate the policies in the Unity configuration so we can simply instantiate the unity container and resolve an instance without &#8220;configuring&#8221; in code (e.g. .AddPolicy).</p>
<p>Do you know how to do that?  Reading Unity documentation, it seems to be possible but I couldn&#8217;t find a sample doing it.</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

