<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
  <channel>
    <title>DotNetKicks.com : Stories kicked by Nextender</title>
    <description>Stories kicked by Nextender</description>
    <link>http://www.dotnetkicks.com/</link>
    <language>en-us</language>
    <copyright>Atweb Publishing Ltd.</copyright>
    <docs>http://backend.userland.com/rss</docs>
    <generator>DotNetKicks.com - .NET links, community driven</generator>
    <ttl>30</ttl>
    <item>
      <title>Unity auto registration</title>
      <description>Auto registration is a great feature for any Dependency Injection container. Suppose you decided to implement the Domain Event pattern. So you have a bunch of events and some event handlers. These event handlers are classes implementing some common interface, say IHandlerFor&amp;lt;TEvent&amp;gt;. You also have a central registry of these handlers, so that you can easily find handlers for particular event - and run them passing the event data. But how does the registry know about these handlers? Well, you probably have to register all of them in the registry with some kind of configuration code. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fmarcinbudny.blogspot.com%2f2009%2f11%2funity-auto-registration.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fmarcinbudny.blogspot.com%2f2009%2f11%2funity-auto-registration.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Unity_auto_registration</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Unity_auto_registration</guid>
      <pubDate>Fri, 13 Nov 2009 21:26:47 GMT</pubDate>
    </item>
    <item>
      <title>Unity Auto Registration (convention over configuration registration)</title>
      <description>Unity Auto Registration extends Unity IoC container and provides nice fluent syntax to configure rules for automatic types registration. In a couple of code lines you can scan specified assemblies and register all types implementing certain interface or decorated with certain attribute (or satisfy your own predicate) with certain lifetime managers and names.
For example:
            var container = new UnityContainer();

            container
                .ConfigureAutoRegistration()
                .LoadAssemblyFrom(&amp;quot;Plugin.dll&amp;quot;)
                .IncludeAllLoadedAssemblies()
                .ExcludeSystemAssemblies()
                .ExcludeAssemblies(a =&amp;gt; a.GetName().FullName.Contains(&amp;quot;Test&amp;quot;))
                .Include(If.Implements&amp;lt;ILogger&amp;gt;, Then.Register().UsingPerCallMode())
                .Include(If.ImplementsITypeName, Then.Register().WithTypeName())
                .Include(If.Implements&amp;lt;ICustomerRepository&amp;gt;, Then.Register().WithName(&amp;quot;Sample&amp;quot;))
                .Include(If.Implements&amp;lt;IOrderRepository&amp;gt;,
                         Then.Register().AsSingleInterfaceOfType().UsingPerCallMode())
                .Include(If.DecoratedWith&amp;lt;LoggerAttribute&amp;gt;,
                         Then.Register()
                                .AsInterface&amp;lt;IDisposable&amp;gt;()
                                .WithTypeName()
                                .UsingLifetime&amp;lt;MyLifetimeManager&amp;gt;())
                .Exclude(t =&amp;gt; t.Name.Contains(&amp;quot;Trace&amp;quot;))
                .ApplyAutoRegistration(); &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fautoregistration.codeplex.com%2f"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fautoregistration.codeplex.com%2f" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Unity_Auto_Registration_convention_over_configuration_registration</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Unity_Auto_Registration_convention_over_configuration_registration</guid>
      <pubDate>Wed, 07 Oct 2009 22:35:33 GMT</pubDate>
    </item>
    <item>
      <title>A C# fluent repeater</title>
      <description>A fully-featured fluent class used for repeating method calls, handle exceptions, callbacks and more...

Just plug-and-play and start repeating stuff! &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.sharpregion.com%2fpost%2fA-fluent-repeater.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.sharpregion.com%2fpost%2fA-fluent-repeater.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/A_C_fluent_repeater</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/A_C_fluent_repeater</guid>
      <pubDate>Fri, 18 Apr 2008 11:01:03 GMT</pubDate>
    </item>
    <item>
      <title>Batch Updates and Deletes with LINQ to SQL</title>
      <description>A couple weeks ago, I read the article, LINQ to SQL Extension: Batch Deletion with Lambda Expression by Jeffrey Zhao.  In case you didn't read the article, it discusses the downside of most O/R Mapping frameworks when it comes to multiple updates or deletes.  He states the fact that a SQL statement for each row flagged as update/delete in the entity set is created.  I went about implementing something similar to what Jeffrey envisioned and I'll explain some of the hurdles I had to overcome to achieve it. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.aneyfamily.com%2fterryandann%2fpost%2f2008%2f04%2fBatch-Updates-and-Deletes-with-LINQ-to-SQL.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.aneyfamily.com%2fterryandann%2fpost%2f2008%2f04%2fBatch-Updates-and-Deletes-with-LINQ-to-SQL.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/linq/Batch_Updates_and_Deletes_with_LINQ_to_SQL</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/linq/Batch_Updates_and_Deletes_with_LINQ_to_SQL</guid>
      <pubDate>Mon, 14 Apr 2008 14:26:52 GMT</pubDate>
    </item>
    <item>
      <title>C# methods decoration using lambda expressions</title>
      <description>On regular basis several repeating code blocks appear in projects source code. Wouldn't it be great if we could just say: here is my method, do call within TCF block (&amp;quot;try - catch - finally&amp;quot; block) first time I need it, but I may require to call it with &amp;quot;try - catch&amp;quot; block only next time or with other catch block content (say I had logging there, but decided to remove or replace it for some special cases of this method call):

// Like this
return MyMethod1.TCF(ex =&amp;gt; Log(ex), arg =&amp;gt; DoSomeFinallyAction(arg))(arg); &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fnextension.blogspot.com%2f2008%2f04%2fon-regular-basis-several-repeating-code.html"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fnextension.blogspot.com%2f2008%2f04%2fon-regular-basis-several-repeating-code.html" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/C_methods_decoration_using_lambda_expressions</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/C_methods_decoration_using_lambda_expressions</guid>
      <pubDate>Sat, 12 Apr 2008 19:33:02 GMT</pubDate>
    </item>
    <item>
      <title>Beware of the mysterious params in C#!</title>
      <description>The 'params' keyword may behave different than you might think it should!

This one is a must for every C# developer out there! &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.sharpregion.com%2fpost%2fC-params-quiz-and-issues.aspx"&gt;&lt;img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.sharpregion.com%2fpost%2fC-params-quiz-and-issues.aspx" border="0" alt="kick it on DotNetKicks.com" /&gt;&lt;/a&gt;
</description>
      <link>http://www.dotnetkicks.com/csharp/Beware_of_the_mysterious_params_in_C</link>
      <guid isPermaLink="true">http://www.dotnetkicks.com/csharp/Beware_of_the_mysterious_params_in_C</guid>
      <pubDate>Tue, 15 Apr 2008 20:01:03 GMT</pubDate>
    </item>
  </channel>
</rss>
