<?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>ChronoPositron.Random()</title>
	<atom:link href="http://chronopositron.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chronopositron.com</link>
	<description>Random thoughts, or thoughts of randomness?</description>
	<lastBuildDate>Fri, 25 Jun 2010 00:37:05 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.24</generator>
	<item>
		<title>WindsorBootstrapper for Prism2</title>
		<link>http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/</link>
		<comments>http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 05:30:10 +0000</pubDate>
		<dc:creator><![CDATA[Ryan Billington]]></dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[castle]]></category>
		<category><![CDATA[compositewpf]]></category>
		<category><![CDATA[prism]]></category>
		<category><![CDATA[prism2]]></category>
		<category><![CDATA[servicelocator]]></category>
		<category><![CDATA[windsor]]></category>

		<guid isPermaLink="false">http://chronopositron.com/?p=85</guid>
		<description><![CDATA[For a large, enterprise application at work, I have been utilizing the Prism (CompositeWPF) framework. The application is still in progress, so I am unable to discuss it&#8217;s nature too much in detail. However, Prism has been a large help in getting the base framework for the application laid out and constructed. After finishing a [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>For a large, enterprise application at <a href="http://www.doccenterinc.com/">work</a>, I have been utilizing the <a href="http://www.codeplex.com/CompositeWPF">Prism (CompositeWPF) framework</a>.  The application is still in progress, so I am unable to discuss it&#8217;s nature too much in detail.  However, Prism has been a large help in getting the base framework for the application laid out and constructed. After finishing a few other tasks, I decided to check the status of the CompositeWPF project and look for any updates. That day just happened to coincide with Prism2&#8242;s latest release. The update sounded appealing, so I started the process of moving everything over to it.</p>
<p>While moving over to the <a href="http://compositewpf.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=23450">February 2009 release of Prism2</a>, I ran into issues with a few of the pieces I was using from the <a href="http://www.codeplex.com/CompositeWPFContrib">CompositeWPFContrib project</a>. For example, the Windsor container bootstrapper had not been updated for the new release of Prism, leading to many problems. In order to fully move over to Prism2, I&#8217;d need to either give up on using Windsor, or create a new bootstrapper for Prism2 capable of working with Castle Windsor. Choosing option 2, I started with the bootstrapper for Unity and with the base Castle Windsor implementation for <a href="http://commonservicelocator.codeplex.com/">ServiceLocator</a>, then modified them quite a bit.  The final results that I ended up with will be posted below.</p>
<p>One significant difference between Castle Windsor and Unity came to light while writing and testing these new classes. If a specific instance of a class that hasn&#8217;t been registered into the container is requested from Unity, Unity doesn&#8217;t complain and just goes ahead and injects what is needed.  Castle Windsor, on the other hand, will throw an exception complaining that the component wasn&#8217;t registered. Both seem like valid approaches, but I wanted to make the transition as simple as possible. So, to avoid changing too much of the logic found within Prism2 (and the bootstrapper), I added a &#8220;ResolveEx&#8221; extension function to IWindsorContainer. If a specific class is requested through this function that isn&#8217;t in the container, it will register it as transient and return an instance. I also changed the ServiceLocator implementation for Castle Windsor to use &#8220;ResolveEx&#8221; if a key is not passed in.<br />
<span id="more-85"></span></p>
<p>And without further ado, here are the files in all their glory (+ <a href='http://chronopositron.com/wp-content/uploads/2009/03/windsorbootstrapper-for-prism2.zip'>zip</a>):</p>
<h3>WindsorBootstrapper.cs</h3>
<p><em>Note for WindsorBootstrapper.cs</em>: There are four resource properties that will need to be added to your project. They should just be simple strings that explain the problem that occurred. The four resource properties are: NullLoggerFacadeException, NullWindsorContainerException, NullModuleCatalogException, and TypeMappingAlreadyRegistered.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080;">#region Usings!</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Diagnostics.CodeAnalysis</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Globalization</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Controls</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Controls.Primitives</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Core.Properties</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Castle.MicroKernel</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Castle.Windsor</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.Composite</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.Composite.Events</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.Composite.Logging</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.Composite.Modularity</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.Composite.Presentation.Regions</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.Composite.Presentation.Regions.Behaviors</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.Composite.Regions</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.ServiceLocation</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #008080;">#endregion</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> Core<span style="color: #008000;">.</span><span style="color: #0000FF;">Windsor</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
    <span style="color: #008080; font-style: italic;">/// Base class that provides a basic bootstrapping sequence that</span>
    <span style="color: #008080; font-style: italic;">/// registers most of the Composite Application Library assets</span>
    <span style="color: #008080; font-style: italic;">/// in a &lt;see cref=&quot;IWindsorContainer&quot;/&gt; and uses &lt;see cref=&quot;Log4NetLogger&quot; /&gt;</span>
    <span style="color: #008080; font-style: italic;">/// for logging.</span>
    <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
    <span style="color: #008080; font-style: italic;">/// &lt;remarks&gt;</span>
    <span style="color: #008080; font-style: italic;">/// This class must be overriden to provide application specific configuration.</span>
    <span style="color: #008080; font-style: italic;">/// &lt;/remarks&gt;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">abstract</span> <span style="color: #6666cc; font-weight: bold;">class</span> WindsorBootstrapper
    <span style="color: #008000;">&#123;</span>
        <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">readonly</span> ILoggerFacade loggerFacade <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> Log4NetLogger<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">bool</span> useDefaultConfiguration <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Gets the default &lt;see cref=&quot;IWindsorContainer&quot;/&gt; for the application.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;value&gt;The default &lt;see cref=&quot;IWindsorContainer&quot;/&gt; instance.&lt;/value&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> IWindsorContainer Container <span style="color: #008000;">&#123;</span> <span style="color: #0600FF; font-weight: bold;">get</span><span style="color: #008000;">;</span> <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">set</span><span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Gets the default &lt;see cref=&quot;ILoggerFacade&quot;/&gt; for the application.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;value&gt;A &lt;see cref=&quot;ILoggerFacade&quot;/&gt; instance.&lt;/value&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">virtual</span> ILoggerFacade LoggerFacade
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">get</span> <span style="color: #008000;">&#123;</span> <span style="color: #0600FF; font-weight: bold;">return</span> loggerFacade<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Runs the bootstrapper process.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> Run<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            Run<span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Run the bootstrapper process.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;runWithDefaultConfiguration&quot;&gt;If &lt;see langword=&quot;true&quot;/&gt;, registers default Composite Application Library services in the container. This is the default behavior.&lt;/param&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> Run<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">bool</span> runWithDefaultConfiguration<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            useDefaultConfiguration <span style="color: #008000;">=</span> runWithDefaultConfiguration<span style="color: #008000;">;</span>
            ILoggerFacade logger <span style="color: #008000;">=</span> LoggerFacade<span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>logger <span style="color: #008000;">==</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #0600FF; font-weight: bold;">throw</span> <span style="color: #008000;">new</span> InvalidOperationException<span style="color: #008000;">&#40;</span>Resources<span style="color: #008000;">.</span><span style="color: #0000FF;">NullLoggerFacadeException</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
&nbsp;
            logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Creating Windsor container&quot;</span>, Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Debug</span>, Priority<span style="color: #008000;">.</span><span style="color: #0000FF;">Low</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Container <span style="color: #008000;">=</span> CreateContainer<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>Container <span style="color: #008000;">==</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #0600FF; font-weight: bold;">throw</span> <span style="color: #008000;">new</span> InvalidOperationException<span style="color: #008000;">&#40;</span>Resources<span style="color: #008000;">.</span><span style="color: #0000FF;">NullWindsorContainerException</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
&nbsp;
&nbsp;
            logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Configuring container&quot;</span>, Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Debug</span>, Priority<span style="color: #008000;">.</span><span style="color: #0000FF;">Low</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            ConfigureContainer<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Configuring region adapters&quot;</span>, Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Debug</span>, Priority<span style="color: #008000;">.</span><span style="color: #0000FF;">Low</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            ConfigureRegionAdapterMappings<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            ConfigureDefaultRegionBehaviors<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            RegisterFrameworkExceptionTypes<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Creating shell&quot;</span>, Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Debug</span>, Priority<span style="color: #008000;">.</span><span style="color: #0000FF;">Low</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            DependencyObject shell <span style="color: #008000;">=</span> CreateShell<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>shell <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                RegionManager<span style="color: #008000;">.</span><span style="color: #0000FF;">SetRegionManager</span><span style="color: #008000;">&#40;</span>shell, Container<span style="color: #008000;">.</span><span style="color: #0000FF;">Resolve</span><span style="color: #008000;">&lt;</span>IRegionManager<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                RegionManager<span style="color: #008000;">.</span><span style="color: #0000FF;">UpdateRegions</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
&nbsp;
            logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Initializing modules&quot;</span>, Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Debug</span>, Priority<span style="color: #008000;">.</span><span style="color: #0000FF;">Low</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            InitializeModules<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Bootstrapper sequence completed&quot;</span>, Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Debug</span>, Priority<span style="color: #008000;">.</span><span style="color: #0000FF;">Low</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Registers in the &lt;see cref=&quot;IWindsorContainer&quot;/&gt; the &lt;see cref=&quot;Type&quot;/&gt; of the Exceptions</span>
        <span style="color: #008080; font-style: italic;">/// that are not considered root exceptions by the &lt;see cref=&quot;ExceptionExtensions&quot;/&gt;.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">virtual</span> <span style="color: #6666cc; font-weight: bold;">void</span> RegisterFrameworkExceptionTypes<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            ExceptionExtensions<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterFrameworkExceptionType</span><span style="color: #008000;">&#40;</span>
                <span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>ActivationException<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            ExceptionExtensions<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterFrameworkExceptionType</span><span style="color: #008000;">&#40;</span>
                <span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>ComponentNotFoundException<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            ExceptionExtensions<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterFrameworkExceptionType</span><span style="color: #008000;">&#40;</span>
                <span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>ComponentRegistrationException<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Configures the &lt;see cref=&quot;IWindsorContainer&quot;/&gt;. May be overwritten in a derived class to add specific</span>
        <span style="color: #008080; font-style: italic;">/// type mappings required by the application.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">virtual</span> <span style="color: #6666cc; font-weight: bold;">void</span> ConfigureContainer<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            Container<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterInstance</span><span style="color: #008000;">&#40;</span>LoggerFacade<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            Container<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterInstance</span><span style="color: #008000;">&#40;</span>Container<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            IModuleCatalog catalog <span style="color: #008000;">=</span> GetModuleCatalog<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>catalog <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                Container<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterInstance</span><span style="color: #008000;">&#40;</span>catalog<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>useDefaultConfiguration<span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                RegisterTypeIfMissing<span style="color: #008000;">&lt;</span>IServiceLocator, WindsorServiceLocator<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                RegisterTypeIfMissing<span style="color: #008000;">&lt;</span>IModuleInitializer, ModuleInitializer<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                RegisterTypeIfMissing<span style="color: #008000;">&lt;</span>IModuleManager, ModuleManager<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                RegisterTypeIfMissing<span style="color: #008000;">&lt;</span>RegionAdapterMappings, RegionAdapterMappings<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                RegisterTypeIfMissing<span style="color: #008000;">&lt;</span>IRegionManager, RegionManager<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                RegisterTypeIfMissing<span style="color: #008000;">&lt;</span>IEventAggregator, EventAggregator<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                RegisterTypeIfMissing<span style="color: #008000;">&lt;</span>IRegionViewRegistry, RegionViewRegistry<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                RegisterTypeIfMissing<span style="color: #008000;">&lt;</span>IRegionBehaviorFactory, RegionBehaviorFactory<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                ServiceLocator<span style="color: #008000;">.</span><span style="color: #0000FF;">SetLocatorProvider</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">=&gt;</span> Container<span style="color: #008000;">.</span><span style="color: #0000FF;">Resolve</span><span style="color: #008000;">&lt;</span>IServiceLocator<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Configures the default region adapter mappings to use in the application, in order</span>
        <span style="color: #008080; font-style: italic;">/// to adapt UI controls defined in XAML to use a region and register it automatically.</span>
        <span style="color: #008080; font-style: italic;">/// May be overwritten in a derived class to add specific mappings required by the application.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;The &lt;see cref=&quot;RegionAdapterMappings&quot;/&gt; instance containing all the mappings.&lt;/returns&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">virtual</span> RegionAdapterMappings ConfigureRegionAdapterMappings<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">var</span> regionAdapterMappings <span style="color: #008000;">=</span> ServiceLocator<span style="color: #008000;">.</span><span style="color: #0000FF;">Current</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GetInstance</span><span style="color: #008000;">&lt;</span>RegionAdapterMappings<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>regionAdapterMappings <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
<span style="color: #008080;">#if SILVERLIGHT</span>
                regionAdapterMappings<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterMapping</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>TabControl<span style="color: #008000;">&#41;</span>, 
                                    ServiceLocator<span style="color: #008000;">.</span><span style="color: #0000FF;">Current</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GetInstance</span><span style="color: #008000;">&lt;</span>TabControlRegionAdapter<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008080;">#endif</span>
                regionAdapterMappings<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterMapping</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>Selector<span style="color: #008000;">&#41;</span>, 
                                    ServiceLocator<span style="color: #008000;">.</span><span style="color: #0000FF;">Current</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GetInstance</span><span style="color: #008000;">&lt;</span>SelectorRegionAdapter<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                regionAdapterMappings<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterMapping</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>ItemsControl<span style="color: #008000;">&#41;</span>,
                                    ServiceLocator<span style="color: #008000;">.</span><span style="color: #0000FF;">Current</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GetInstance</span><span style="color: #008000;">&lt;</span>ItemsControlRegionAdapter<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                regionAdapterMappings<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterMapping</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>ContentControl<span style="color: #008000;">&#41;</span>,
                                    ServiceLocator<span style="color: #008000;">.</span><span style="color: #0000FF;">Current</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GetInstance</span><span style="color: #008000;">&lt;</span>ContentControlRegionAdapter<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">return</span> regionAdapterMappings<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Configures the &lt;see cref=&quot;IRegionBehaviorFactory&quot;/&gt;. This will be the list of default</span>
        <span style="color: #008080; font-style: italic;">/// behaviors that will be added to a region. </span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">virtual</span> IRegionBehaviorFactory ConfigureDefaultRegionBehaviors<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">var</span> defaultRegionBehaviorTypesDictionary <span style="color: #008000;">=</span> Container<span style="color: #008000;">.</span><span style="color: #0000FF;">TryResolve</span><span style="color: #008000;">&lt;</span>IRegionBehaviorFactory<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>defaultRegionBehaviorTypesDictionary <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                defaultRegionBehaviorTypesDictionary<span style="color: #008000;">.</span><span style="color: #0000FF;">AddIfMissing</span><span style="color: #008000;">&#40;</span>AutoPopulateRegionBehavior<span style="color: #008000;">.</span><span style="color: #0000FF;">BehaviorKey</span>,
                                                                  <span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>AutoPopulateRegionBehavior<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                defaultRegionBehaviorTypesDictionary<span style="color: #008000;">.</span><span style="color: #0000FF;">AddIfMissing</span><span style="color: #008000;">&#40;</span>
                    BindRegionContextToDependencyObjectBehavior<span style="color: #008000;">.</span><span style="color: #0000FF;">BehaviorKey</span>,
                    <span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>BindRegionContextToDependencyObjectBehavior<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                defaultRegionBehaviorTypesDictionary<span style="color: #008000;">.</span><span style="color: #0000FF;">AddIfMissing</span><span style="color: #008000;">&#40;</span>RegionActiveAwareBehavior<span style="color: #008000;">.</span><span style="color: #0000FF;">BehaviorKey</span>,
                                                                  <span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>RegionActiveAwareBehavior<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                defaultRegionBehaviorTypesDictionary<span style="color: #008000;">.</span><span style="color: #0000FF;">AddIfMissing</span><span style="color: #008000;">&#40;</span>SyncRegionContextWithHostBehavior<span style="color: #008000;">.</span><span style="color: #0000FF;">BehaviorKey</span>,
                                                                  <span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>SyncRegionContextWithHostBehavior<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
                defaultRegionBehaviorTypesDictionary<span style="color: #008000;">.</span><span style="color: #0000FF;">AddIfMissing</span><span style="color: #008000;">&#40;</span>RegionManagerRegistrationBehavior<span style="color: #008000;">.</span><span style="color: #0000FF;">BehaviorKey</span>,
                                                                  <span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>RegionManagerRegistrationBehavior<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> defaultRegionBehaviorTypesDictionary<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Initializes the modules. May be overwritten in a derived class to use a custom Modules Catalog</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">virtual</span> <span style="color: #6666cc; font-weight: bold;">void</span> InitializeModules<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            IModuleManager manager<span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">try</span>
            <span style="color: #008000;">&#123;</span>
                manager <span style="color: #008000;">=</span> Container<span style="color: #008000;">.</span><span style="color: #0000FF;">Resolve</span><span style="color: #008000;">&lt;</span>IModuleManager<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
            <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#40;</span>ComponentNotFoundException ex<span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>ex<span style="color: #008000;">.</span><span style="color: #0000FF;">Message</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Contains</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;IModuleCatalog&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
                <span style="color: #008000;">&#123;</span>
                    <span style="color: #0600FF; font-weight: bold;">throw</span> <span style="color: #008000;">new</span> InvalidOperationException<span style="color: #008000;">&#40;</span>Resources<span style="color: #008000;">.</span><span style="color: #0000FF;">NullModuleCatalogException</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                <span style="color: #008000;">&#125;</span>
&nbsp;
                <span style="color: #0600FF; font-weight: bold;">throw</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
&nbsp;
            manager<span style="color: #008000;">.</span><span style="color: #0000FF;">Run</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Returns the module catalog that will be used to initialize the modules.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;remarks&gt;</span>
        <span style="color: #008080; font-style: italic;">/// When using the default initialization behavior, this method must be overwritten by a derived class.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/remarks&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;An instance of &lt;see cref=&quot;IModuleCatalog&quot;/&gt; that will be used to initialize the modules.&lt;/returns&gt;</span>
        <span style="color: #008000;">&#91;</span>SuppressMessage<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Microsoft.Design&quot;</span>, <span style="color: #666666;">&quot;CA1024:UsePropertiesWhereAppropriate&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">virtual</span> IModuleCatalog GetModuleCatalog<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Creates the &lt;see cref=&quot;IWindsorContainer&quot;/&gt; that will be used as the default container.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;A new instance of &lt;see cref=&quot;IWindsorContainer&quot;/&gt;.&lt;/returns&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">virtual</span> IWindsorContainer CreateContainer<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #008000;">new</span> WindsorContainer<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Registers a type in the container only if that type was not already registered.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;registerAsSingleton&quot;&gt;Registers the type as a singleton.&lt;/param&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #6666cc; font-weight: bold;">void</span> RegisterTypeIfMissing<span style="color: #008000;">&lt;</span>TFromType, TToType<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">bool</span> registerAsSingleton<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            ILoggerFacade logger <span style="color: #008000;">=</span> LoggerFacade<span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>Container<span style="color: #008000;">.</span><span style="color: #0000FF;">IsTypeRegistered</span><span style="color: #008000;">&lt;</span>TFromType<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Log</span><span style="color: #008000;">&#40;</span>
                    <span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Format</span><span style="color: #008000;">&#40;</span>CultureInfo<span style="color: #008000;">.</span><span style="color: #0000FF;">CurrentCulture</span>,
                                  Resources<span style="color: #008000;">.</span><span style="color: #0000FF;">TypeMappingAlreadyRegistered</span>,
                                  <span style="color: #008000;">typeof</span> <span style="color: #008000;">&#40;</span>TFromType<span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Name</span><span style="color: #008000;">&#41;</span>, Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Debug</span>, Priority<span style="color: #008000;">.</span><span style="color: #0000FF;">Low</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
            <span style="color: #0600FF; font-weight: bold;">else</span>
            <span style="color: #008000;">&#123;</span>
                Container<span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterType</span><span style="color: #008000;">&lt;</span>TFromType, TToType<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span>registerAsSingleton<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Creates the shell or main window of the application.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;The shell of the application.&lt;/returns&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;remarks&gt;</span>
        <span style="color: #008080; font-style: italic;">/// If the returned instance is a &lt;see cref=&quot;DependencyObject&quot;/&gt;, the</span>
        <span style="color: #008080; font-style: italic;">/// &lt;see cref=&quot;IWindsorContainer&quot;/&gt; will attach the default &lt;seealso cref=&quot;IRegionManager&quot;/&gt; of</span>
        <span style="color: #008080; font-style: italic;">/// the application in its &lt;see cref=&quot;RegionManager.RegionManagerProperty&quot;/&gt; attached property</span>
        <span style="color: #008080; font-style: italic;">/// in order to be able to add regions by using the &lt;seealso cref=&quot;RegionManager.RegionNameProperty&quot;/&gt;</span>
        <span style="color: #008080; font-style: italic;">/// attached property from XAML.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/remarks&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">abstract</span> DependencyObject CreateShell<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<h3>WindsorContainerHelper.cs</h3>

<div class="wp_syntax"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080;">#region Usings!</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Diagnostics.CodeAnalysis</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Castle.Core</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Castle.Windsor</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #008080;">#endregion</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> Core<span style="color: #008000;">.</span><span style="color: #0000FF;">Windsor</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
    <span style="color: #008080; font-style: italic;">/// Extensions methods to extend and facilitate the usage of &lt;see cref=&quot;IWindsorContainer&quot;/&gt;.</span>
    <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">class</span> WindsorContainerHelper
    <span style="color: #008000;">&#123;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Returns whether a specified type has a type mapping registered in the container.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;container&quot;&gt;The &lt;see cref=&quot;IWindsorContainer&quot;/&gt; to check for the type mapping.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;type&quot;&gt;The type to check if there is a type mapping for.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;&lt;see langword=&quot;true&quot;/&gt; if there is a type mapping registered for &lt;paramref name=&quot;type&quot;/&gt;.&lt;/returns&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;remarks&gt;In order to use this extension method, you first need to add the</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/remarks&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">bool</span> IsTypeRegistered<span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span> IWindsorContainer container, Type type<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> container<span style="color: #008000;">.</span><span style="color: #0000FF;">Kernel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">HasComponent</span><span style="color: #008000;">&#40;</span>type<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">bool</span> IsTypeRegistered<span style="color: #008000;">&lt;</span>TType<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span> IWindsorContainer container<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            Type typeToCheck <span style="color: #008000;">=</span> <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>TType<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> IsTypeRegistered<span style="color: #008000;">&#40;</span>container, typeToCheck<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Utility method to try to resolve a service from the container avoiding an exception if the container cannot build the type.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;container&quot;&gt;The cointainer that will be used to resolve the type.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;typeparam name=&quot;T&quot;&gt;The type to resolve.&lt;/typeparam&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;The instance of &lt;typeparamref name=&quot;T&quot;/&gt; built up by the container.&lt;/returns&gt;</span>
        <span style="color: #008000;">&#91;</span>SuppressMessage<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Microsoft.Design&quot;</span>, <span style="color: #666666;">&quot;CA1004:GenericMethodsShouldProvideTypeParameter&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> T TryResolve<span style="color: #008000;">&lt;</span>T<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span> IWindsorContainer container<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #6666cc; font-weight: bold;">object</span> result <span style="color: #008000;">=</span> TryResolve<span style="color: #008000;">&#40;</span>container, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>T<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>result <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #008000;">&#40;</span>T<span style="color: #008000;">&#41;</span>result<span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #0600FF; font-weight: bold;">default</span><span style="color: #008000;">&#40;</span>T<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Utility method to try to resolve a service from the container avoiding an exception if the container cannot build the type.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;container&quot;&gt;The cointainer that will be used to resolve the type.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;typeToResolve&quot;&gt;The type to resolve.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;The instance of &lt;paramref name=&quot;typeToResolve&quot;/&gt; built up by the container.&lt;/returns&gt;</span>
        <span style="color: #008000;">&#91;</span>SuppressMessage<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Microsoft.Design&quot;</span>, <span style="color: #666666;">&quot;CA1031:DoNotCatchGeneralExceptionTypes&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">object</span> TryResolve<span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span> IWindsorContainer container, Type typeToResolve<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #6666cc; font-weight: bold;">object</span> resolved<span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">try</span>
            <span style="color: #008000;">&#123;</span>
                resolved <span style="color: #008000;">=</span> Resolve<span style="color: #008000;">&#40;</span>container, typeToResolve<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
            <span style="color: #0600FF; font-weight: bold;">catch</span>
            <span style="color: #008000;">&#123;</span>
                resolved <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">return</span> resolved<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Resolves a service from the container. If the type does not exist on the container, </span>
        <span style="color: #008080; font-style: italic;">/// first registers it with transient lifestyle.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;container&quot;&gt;&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;type&quot;&gt;&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;&lt;/returns&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">object</span> ResolveEx<span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span> IWindsorContainer container, Type type<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>type<span style="color: #008000;">.</span><span style="color: #0000FF;">IsClass</span> <span style="color: #008000;">&amp;&amp;</span> <span style="color: #008000;">!</span>container<span style="color: #008000;">.</span><span style="color: #0000FF;">Kernel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">HasComponent</span><span style="color: #008000;">&#40;</span>type<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                container<span style="color: #008000;">.</span><span style="color: #0000FF;">Kernel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">AddComponent</span><span style="color: #008000;">&#40;</span>type<span style="color: #008000;">.</span><span style="color: #0000FF;">FullName</span>, type, LifestyleType<span style="color: #008000;">.</span><span style="color: #0000FF;">Transient</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">return</span> container<span style="color: #008000;">.</span><span style="color: #0000FF;">Resolve</span><span style="color: #008000;">&#40;</span>type<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Resolves a service from the container. If the type does not exist on the container, </span>
        <span style="color: #008080; font-style: italic;">/// first registers it with transient lifestyle.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;container&quot;&gt;&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;type&quot;&gt;&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;&lt;/returns&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">object</span> Resolve<span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span> IWindsorContainer container, Type type<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> ResolveEx<span style="color: #008000;">&#40;</span>container, type<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Registers the type on the container.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;typeparam name=&quot;TServiceType&quot;&gt;The type of the interface.&lt;/typeparam&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;typeparam name=&quot;TClassType&quot;&gt;The type of the service.&lt;/typeparam&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;container&quot;&gt;The container.&lt;/param&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> RegisterType<span style="color: #008000;">&lt;</span>TServiceType, TClassType<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span> IWindsorContainer container<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            RegisterType<span style="color: #008000;">&lt;</span>TServiceType, TClassType<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span>container, <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Registers the type on the container.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;typeparam name=&quot;TServiceType&quot;&gt;The type of interface.&lt;/typeparam&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;typeparam name=&quot;TClassType&quot;&gt;The type of the service.&lt;/typeparam&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;container&quot;&gt;The container.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;singleton&quot;&gt;if set to &lt;c&gt;true&lt;/c&gt; type will be registered as singleton.&lt;/param&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> RegisterType<span style="color: #008000;">&lt;</span>TServiceType, TClassType<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span> IWindsorContainer container, <span style="color: #6666cc; font-weight: bold;">bool</span> singleton<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #008000;">!</span>container<span style="color: #008000;">.</span><span style="color: #0000FF;">Kernel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">HasComponent</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>TServiceType<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                container<span style="color: #008000;">.</span><span style="color: #0000FF;">Kernel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">AddComponent</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>TClassType<span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">FullName</span>, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>TServiceType<span style="color: #008000;">&#41;</span>, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>TClassType<span style="color: #008000;">&#41;</span>,
                                              singleton <span style="color: #008000;">?</span> LifestyleType<span style="color: #008000;">.</span><span style="color: #0000FF;">Singleton</span> <span style="color: #008000;">:</span> LifestyleType<span style="color: #008000;">.</span><span style="color: #0000FF;">Transient</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Registers the instance of a type on the container.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;typeparam name=&quot;TServiceType&quot;&gt;The type of interface.&lt;/typeparam&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;container&quot;&gt;The container.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;instance&quot;&gt;The instance.&lt;/param&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> RegisterInstance<span style="color: #008000;">&lt;</span>TServiceType<span style="color: #008000;">&gt;</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">this</span> IWindsorContainer container, TServiceType instance<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #008000;">!</span>container<span style="color: #008000;">.</span><span style="color: #0000FF;">Kernel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">HasComponent</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>TServiceType<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                container<span style="color: #008000;">.</span><span style="color: #0000FF;">Kernel</span><span style="color: #008000;">.</span><span style="color: #0000FF;">AddComponentInstance</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>TServiceType<span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">FullName</span>, <span style="color: #008000;">typeof</span><span style="color: #008000;">&#40;</span>TServiceType<span style="color: #008000;">&#41;</span>, instance<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<h3>WindsorServiceLocator.cs</h3>

<div class="wp_syntax"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080;">#region Usings!</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Collections.Generic</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Castle.Windsor</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.ServiceLocation</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #008080;">#endregion</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> Core<span style="color: #008000;">.</span><span style="color: #0000FF;">Windsor</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
    <span style="color: #008080; font-style: italic;">/// Adapts the behavior of the Windsor container to the common</span>
    <span style="color: #008080; font-style: italic;">/// IServiceLocator</span>
    <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> WindsorServiceLocator <span style="color: #008000;">:</span> ServiceLocatorImplBase
    <span style="color: #008000;">&#123;</span>
        <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">readonly</span> IWindsorContainer container<span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Initializes a new instance of the &lt;see cref=&quot;WindsorServiceLocator&quot;/&gt; class.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;container&quot;&gt;The container.&lt;/param&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> WindsorServiceLocator<span style="color: #008000;">&#40;</span>IWindsorContainer container<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">container</span> <span style="color: #008000;">=</span> container<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">///             When implemented by inheriting classes, this method will do the actual work of resolving</span>
        <span style="color: #008080; font-style: italic;">///             the requested service instance.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;serviceType&quot;&gt;Type of instance requested.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;key&quot;&gt;Name of registered service you want. May be null.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;</span>
        <span style="color: #008080; font-style: italic;">/// The requested service instance.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/returns&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">override</span> <span style="color: #6666cc; font-weight: bold;">object</span> DoGetInstance<span style="color: #008000;">&#40;</span>Type serviceType, <span style="color: #6666cc; font-weight: bold;">string</span> key<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>key <span style="color: #008000;">!=</span> <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #0600FF; font-weight: bold;">return</span> container<span style="color: #008000;">.</span><span style="color: #0000FF;">Resolve</span><span style="color: #008000;">&#40;</span>key, serviceType<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> container<span style="color: #008000;">.</span><span style="color: #0000FF;">ResolveEx</span><span style="color: #008000;">&#40;</span>serviceType<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">/// &lt;summary&gt;</span>
        <span style="color: #008080; font-style: italic;">///             When implemented by inheriting classes, this method will do the actual work of</span>
        <span style="color: #008080; font-style: italic;">///             resolving all the requested service instances.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/summary&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;param name=&quot;serviceType&quot;&gt;Type of service requested.&lt;/param&gt;</span>
        <span style="color: #008080; font-style: italic;">/// &lt;returns&gt;</span>
        <span style="color: #008080; font-style: italic;">/// Sequence of service instance objects.</span>
        <span style="color: #008080; font-style: italic;">/// &lt;/returns&gt;</span>
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">override</span> IEnumerable<span style="color: #008000;">&lt;</span><span style="color: #6666cc; font-weight: bold;">object</span><span style="color: #008000;">&gt;</span> DoGetAllInstances<span style="color: #008000;">&#40;</span>Type serviceType<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">object</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span> container<span style="color: #008000;">.</span><span style="color: #0000FF;">ResolveAll</span><span style="color: #008000;">&#40;</span>serviceType<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<h3>Log4NetLogger.cs</h3>

<div class="wp_syntax"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008080;">#region Usings!</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Reflection</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">log4net</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">Microsoft.Practices.Composite.Logging</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #008080;">#endregion</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> Core<span style="color: #008000;">.</span><span style="color: #0000FF;">Windsor</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> Log4NetLogger <span style="color: #008000;">:</span> ILoggerFacade
    <span style="color: #008000;">&#123;</span>
        <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #0600FF; font-weight: bold;">readonly</span> ILog logger <span style="color: #008000;">=</span> LogManager<span style="color: #008000;">.</span><span style="color: #0000FF;">GetLogger</span><span style="color: #008000;">&#40;</span>MethodBase<span style="color: #008000;">.</span><span style="color: #0000FF;">GetCurrentMethod</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">DeclaringType</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
        <span style="color: #008080;">#region ILoggerFacade Members</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> Log<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> message, Category category, Priority priority<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">switch</span> <span style="color: #008000;">&#40;</span>category<span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                <span style="color: #0600FF; font-weight: bold;">case</span> Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Debug</span><span style="color: #008000;">:</span>
                    logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Debug</span><span style="color: #008000;">&#40;</span>message<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">break</span><span style="color: #008000;">;</span>
&nbsp;
                <span style="color: #0600FF; font-weight: bold;">case</span> Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Exception</span><span style="color: #008000;">:</span>
                    logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Error</span><span style="color: #008000;">&#40;</span>message<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">break</span><span style="color: #008000;">;</span>
&nbsp;
                <span style="color: #0600FF; font-weight: bold;">case</span> Category<span style="color: #008000;">.</span><span style="color: #0000FF;">Warn</span><span style="color: #008000;">:</span>
                    logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Warn</span><span style="color: #008000;">&#40;</span>message<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">break</span><span style="color: #008000;">;</span>
&nbsp;
                <span style="color: #0600FF; font-weight: bold;">default</span><span style="color: #008000;">:</span>
                    logger<span style="color: #008000;">.</span><span style="color: #0000FF;">Info</span><span style="color: #008000;">&#40;</span>message<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">break</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #008080;">#endregion</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>



<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D+%28via+%40ChronoPositron%29&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=4&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=WindsorBootstrapper+for+Prism2&amp;link=http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/&amp;notes=For%20a%20large%2C%20enterprise%20application%20at%20work%2C%20I%20have%20been%20utilizing%20the%20Prism%20%28CompositeWPF%29%20framework.%20%20The%20application%20is%20still%20in%20progress%2C%20so%20I%20am%20unable%20to%20discuss%20it%27s%20nature%20too%20much%20in%20detail.%20%20However%2C%20Prism%20has%20been%20a%20large%20help%20in%20getting%20the%20base%20framework%20for%20the%20application%20laid%20out%20and&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chronopositron.com/2009/03/31/windsorbootstrapper-for-prism2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Castle ActiveRecord and Fluent Create/Update/Save</title>
		<link>http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/</link>
		<comments>http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 06:38:35 +0000</pubDate>
		<dc:creator><![CDATA[Ryan Billington]]></dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[castle]]></category>
		<category><![CDATA[fluent]]></category>

		<guid isPermaLink="false">http://chronopositron.com/?p=68</guid>
		<description><![CDATA[I came up with an interesting idea the other day at work involving some work I had been doing with Castle ActiveRecord. I am using (a modified) GeneratorStudio to produce ActiveRecord partial classes based on a database schema that I have. All of my code additions go into another set of partial class files so [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I came up with an interesting idea the other day at work involving some work I had been doing with <a href="http://www.castleproject.org/ActiveRecord/">Castle ActiveRecord</a>. I am using (a modified) <a href="http://www.codeplex.com/generatorstudio">GeneratorStudio</a> to produce ActiveRecord partial classes based on a database schema that I have. All of my code additions go into another set of partial class files so that I can regenerate the base classes whenever I need to.</p>
<p>However, there are many times when I need to find a specific item, and if it isn&#8217;t found, I need to create a new one.  After this, it is used for yet another item. So essentially, the item has to exist before the code can continue. This is where my slightly clever (if I can call it that) idea comes into play.</p>
<p>I will be using part of the example Post class from <a href="http://www.castleproject.org/ActiveRecord/gettingstarted/classes.html">http://www.castleproject.org/ActiveRecord/gettingstarted/classes.html</a> as a basis for the new idea:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #008000;">&#91;</span>ActiveRecord<span style="color: #008000;">&#93;</span>
<span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> Post <span style="color: #008000;">:</span> ActiveRecordBase<span style="color: #008000;">&lt;</span>Post<span style="color: #008000;">&gt;</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">int</span> id<span style="color: #008000;">;</span>
    <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">String</span> title<span style="color: #008000;">;</span>
&nbsp;
    <span style="color: #0600FF; font-weight: bold;">public</span> Post<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
        created <span style="color: #008000;">=</span> DateTime<span style="color: #008000;">.</span><span style="color: #0000FF;">Now</span><span style="color: #008000;">;</span>
    <span style="color: #008000;">&#125;</span>
&nbsp;
    <span style="color: #008000;">&#91;</span>PrimaryKey<span style="color: #008000;">&#93;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">int</span> Id
    <span style="color: #008000;">&#123;</span>
        <span style="color: #0600FF; font-weight: bold;">get</span> <span style="color: #008000;">&#123;</span> <span style="color: #0600FF; font-weight: bold;">return</span> id<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
        <span style="color: #0600FF; font-weight: bold;">set</span> <span style="color: #008000;">&#123;</span> id <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">value</span><span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
&nbsp;
    <span style="color: #008000;">&#91;</span>Property<span style="color: #008000;">&#93;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">String</span> Title
    <span style="color: #008000;">&#123;</span>
        <span style="color: #0600FF; font-weight: bold;">get</span> <span style="color: #008000;">&#123;</span> <span style="color: #0600FF; font-weight: bold;">return</span> title<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
        <span style="color: #0600FF; font-weight: bold;">set</span> <span style="color: #008000;">&#123;</span> title <span style="color: #008000;">=</span> <span style="color: #0600FF; font-weight: bold;">value</span><span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>For all of my unique indexes, I create additional static helper methods that allow retrieval by those constraints. Let us assume that Title is a unique index; that is, there can only be a single post with a specific title.  Then the following function becomes valid (in the Post class):</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> Post GetByTitle<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> title<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">return</span> FindOne<span style="color: #008000;">&#40;</span>Restrictions<span style="color: #008000;">.</span><span style="color: #0000FF;">Eq</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Title&quot;</span>,title<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>And here is my little idea for making a small fluent addition (to the Post class):</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">public</span> Post CreateFluent<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
    Create<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>A function similar to this would hopefully work for CreateAndFlush, Update, UpdateAndFlush, Save, and SaveAndFlush as well.  Once all of this is in place, I now have many new options for dealing with items that need to exist or be updated before they can be used. I find the fluent-like style of this to be easy to read while working through code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">var</span> post <span style="color: #008000;">=</span> Post<span style="color: #008000;">.</span><span style="color: #0000FF;">GetByTitle</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;42&quot;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">??</span> <span style="color: #008000;">new</span> Post <span style="color: #008000;">&#123;</span> Title <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;42&quot;</span> <span style="color: #008000;">&#125;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">CreateFluent</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #008080; font-style: italic;">// do something important with post</span></pre></td></tr></table></div>

<p>Since Post.GetByTitle(string title) will return null if the post cannot be found, the null coalescing operator (<a href="http://msdn.microsoft.com/en-us/library/ms173224.aspx">??</a>) takes care of automatically running the second half and creating the new Post if a Post with the specified title couldn&#8217;t be found.  I&#8217;m still testing this fully to see how well it works, but I&#8217;ll update here once I get concrete evidence of its functionality.</p>
<p><em>EDIT:</em> I&#8217;ve been using this for the last few weeks and I have not run into any issues with it. It looks pretty slick in the code, too.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D+%28via+%40ChronoPositron%29&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=4&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Castle+ActiveRecord+and+Fluent+Create%2FUpdate%2FSave&amp;link=http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/&amp;notes=I%20came%20up%20with%20an%20interesting%20idea%20the%20other%20day%20at%20work%20involving%20some%20work%20I%20had%20been%20doing%20with%20Castle%20ActiveRecord.%20I%20am%20using%20%28a%20modified%29%20GeneratorStudio%20to%20produce%20ActiveRecord%20partial%20classes%20based%20on%20a%20database%20schema%20that%20I%20have.%20All%20of%20my%20code%20additions%20go%20into%20another%20set%20of%20partial%20clas&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chronopositron.com/2009/02/18/castle-activerecord-and-fluent-createupdatesave/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Theme, Updated Code</title>
		<link>http://chronopositron.com/2009/02/11/new-theme-updated-code/</link>
		<comments>http://chronopositron.com/2009/02/11/new-theme-updated-code/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 08:13:37 +0000</pubDate>
		<dc:creator><![CDATA[Ryan Billington]]></dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://chronopositron.com/?p=38</guid>
		<description><![CDATA[I&#8217;ve decided on a theme for my blog that I feel comfortable using without tweaking the design too much more. I&#8217;ll still be making minor tweaks and enhancements, but at least I won&#8217;t be devoting all my blogging time to making a design. Since I&#8217;m mostly content with it, I&#8217;ll be able to devote a [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve decided on a theme for my blog that I feel comfortable using without tweaking the design too much more. I&#8217;ll still be making minor tweaks and enhancements, but at least I won&#8217;t be devoting all my blogging time to making a design. Since I&#8217;m mostly content with it, I&#8217;ll be able to devote a larger portion of my time to actually writing new content.</p>
<p>The theme I chose, though, was only written and available for WordPress 2.5.  I know how to work with PHP and HTML/CSS, so I jumped right in to make the modifications necessary to support the new WordPress 2.6 and 2.7 features.  WordPress 2.7 added an entirely new comment loop and threaded comments, therefore most of the comment code had to be rewritten to support it. In addition to that, a new function was added to get the classes used for styling each entry:</p>
<blockquote><p>The post_class() outputs the class=&#8221;whatever&#8221; piece for that div. This includes several different classes of value: post, hentry (for hAtom microformat pages), category-X (where X is the slug of every category the post is in), and tag-X (similar, but with tags). It also adds &#8220;sticky&#8221; for posts marked as sticky posts. These make it easy to style different parts of the theme in different ways.<br />[<a href="http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7">http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7</a>]</p></blockquote>
<p>Besides the required changes to make the theme work fully with WordPress 2.7, I also added in a few personal features. First, I made the H1 on the pages dynamic. It was originally constructed so that the title of the blog appeared in the H1 for every single page. I have seen it written multiple times that the title of the blog should only be in an H1 on the main page of the blog. On the individual content pages, the title of the content (post or page) should be contained within an H1. This is supposed to help with <abbr title="Search Engine Optimization">SEO</abbr>.  Second, I added my Twitter loading javascripts to the footer. With the load script in the footer instead of in a widget, only a very minimal portion of my site doesn&#8217;t load if Twitter goes down.  Third, I added my Google Analytics code to the footer as well.</p>
<div id="attachment_45" style="width: 310px" class="wp-caption alignright"><a class="lightbox"  title ="New threaded comments with visible reply links." href="http://chronopositron.com/wp-content/uploads/2009/02/new-threaded-comments.png"><img src="http://chronopositron.com/wp-content/uploads/2009/02/new-threaded-comments-300x137.png" alt="Here&#039;s a screenshot of the new threaded comments. Notice the &#039;Reply&#039; link on the left side if a comment can be replied to." title="New threaded comments with visible reply links." width="300" height="137" class="size-medium wp-image-45" /></a><p class="wp-caption-text">Here's a screenshot of the new threaded comments. Notice the 'Reply' link on the left side if a comment can be replied to.</p></div>
<p>I would like to make a settings panel for administering options for the theme, such as my new Google Analytics and Twitter support.  I feel that this would be useful for myself, but possibly more beneficial to others. If there is sufficient demand (or any <img src="http://chronopositron.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" />  ), then I may try to contact the authors of the dark theme for WordPress to see if I can release my own version. If I do that and get permission, I will definitely be adding a settings panel with a multitude of options.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D+%28via+%40ChronoPositron%29&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://chronopositron.com/2009/02/11/new-theme-updated-code/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=4&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=New+Theme%2C+Updated+Code&amp;link=http://chronopositron.com/2009/02/11/new-theme-updated-code/&amp;notes=I%27ve%20decided%20on%20a%20theme%20for%20my%20blog%20that%20I%20feel%20comfortable%20using%20without%20tweaking%20the%20design%20too%20much%20more.%20I%27ll%20still%20be%20making%20minor%20tweaks%20and%20enhancements%2C%20but%20at%20least%20I%20won%27t%20be%20devoting%20all%20my%20blogging%20time%20to%20making%20a%20design.%20Since%20I%27m%20mostly%20content%20with%20it%2C%20I%27ll%20be%20able%20to%20devote%20a%20larger&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chronopositron.com/2009/02/11/new-theme-updated-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Politics: The Foundation of the U.S. Government</title>
		<link>http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/</link>
		<comments>http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 20:21:00 +0000</pubDate>
		<dc:creator><![CDATA[Ryan Billington]]></dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[government]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/</guid>
		<description><![CDATA[I just found a really interesting and enlightening article that was written by a 17 year old law student. The title of the article is &#8220;The Great Pillars of Our Government&#8221;. The entry talks about some of the things that the founding fathers of this nation were saying and has several excellent quotes on it. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I just found a really interesting and enlightening article that was written by a 17 year old law student.  The title of the article is <a href="http://www.changingworldviews.com/guestcommentaries/jkriveart.htm">&#8220;The Great Pillars of Our Government&#8221;</a>.  The entry talks about some of the things that the founding fathers of this nation were saying and has several excellent quotes on it.  One of my favorite quotes from the page is the one below by <a href="http://en.wikipedia.org/wiki/Robert_Winthrop">Robert Winthrop</a> (I retrieved the full paragraph of the quote from <a href="http://books.google.com/books?pg=PA173&amp;dq=philanthropy+robert+winthrop&amp;id=NUizWSNaJpsC#PPA172,M1">Google</a>):</p>
<blockquote><p>All societies of men must be governed in some way or other. The less they have of stringent State Government, the more they must have of individual self-government. The less they rely on public law or physical force, the more they must rely on private moral restraint. Men, in a word, must necessarily be controlled either by a power within them, or a power without them; either by the word of God, or by the strong arm of man; either by the Bible or by the bayonet. It may do for other countries and other governments to talk about the State supporting religion.  Here, under our own institutions, it is Religion which must support the State.  (from: Addresses and Speeches on Various Occasions, By Robert C. Winthrop, p. 172)</p></blockquote>
<p>This varies from what I would normally talk about, but I tend to be a conservative, and I like to at least stay informed about the government.  This is from a long time ago, but I think it gives perspective to things that are happening in the current world.  As a side note, I think that the next presidential election will be very interesting to watch, as I believe that the running of the candidates will get very heated.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D+%28via+%40ChronoPositron%29&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=4&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Politics%3A+The+Foundation+of+the+U.S.+Government&amp;link=http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/&amp;notes=I%20just%20found%20a%20really%20interesting%20and%20enlightening%20article%20that%20was%20written%20by%20a%2017%20year%20old%20law%20student.%20%20The%20title%20of%20the%20article%20is%20%22The%20Great%20Pillars%20of%20Our%20Government%22.%20%20The%20entry%20talks%20about%20some%20of%20the%20things%20that%20the%20founding%20fathers%20of%20this%20nation%20were%20saying%20and%20has%20several%20excellent%20quote&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chronopositron.com/2007/07/10/politics-the-foundation-of-the-us-government/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Apps</title>
		<link>http://chronopositron.com/2007/06/13/google-apps/</link>
		<comments>http://chronopositron.com/2007/06/13/google-apps/#comments</comments>
		<pubDate>Thu, 14 Jun 2007 03:27:00 +0000</pubDate>
		<dc:creator><![CDATA[Ryan Billington]]></dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://chronopositron.com/2007/06/13/google-apps/</guid>
		<description><![CDATA[I just found that you can get Google Apps for free (standard edition) for any domain that you may own. I just set it up for my domain and I think it&#8217;s pretty cool looking. You can get Gmail on your domain, some simple webpages, a google ig start page (partner page or something like [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I just found that you can get <a href="http://www.google.com/a/">Google Apps</a> for free (standard edition) for any domain that you may own.  I just set it up for my domain and I think it&#8217;s pretty cool looking.  You can get Gmail on your domain, some simple webpages, a google ig start page (partner page or something like that), calendar, and docs for your own domain.  For the standard edition (free one) you can have like up to 100 users and each user gets 2gb of mail storage.</p>
<p>The really cool thing is that Google has the MX entries to set the mail up and a place to redirect all the other domain settings to.  All i had to do was set up the Google Apps thing, then log into my domain administration page and enter the entries that the step by step instructions say to.</p>
<p>The only downside that I see at the moment is the simplicity of the webpages that you can make.  I didn&#8217;t really look that far into it, but as far as I saw, they are pretty basic pages.   If you have a domain that isn&#8217;t being really used or pointed to anything, or you just want a cheap way to get something up and have a nice mail system, Google Apps is definitely something to check into.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D+%28via+%40ChronoPositron%29&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://chronopositron.com/2007/06/13/google-apps/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=4&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Google+Apps&amp;link=http://chronopositron.com/2007/06/13/google-apps/&amp;notes=I%20just%20found%20that%20you%20can%20get%20Google%20Apps%20for%20free%20%28standard%20edition%29%20for%20any%20domain%20that%20you%20may%20own.%20%20I%20just%20set%20it%20up%20for%20my%20domain%20and%20I%20think%20it%27s%20pretty%20cool%20looking.%20%20You%20can%20get%20Gmail%20on%20your%20domain%2C%20some%20simple%20webpages%2C%20a%20google%20ig%20start%20page%20%28partner%20page%20or%20something%20like%20that%29%2C%20calendar&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chronopositron.com/2007/06/13/google-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari. On Windows?</title>
		<link>http://chronopositron.com/2007/06/12/safari-on-windows/</link>
		<comments>http://chronopositron.com/2007/06/12/safari-on-windows/#comments</comments>
		<pubDate>Tue, 12 Jun 2007 10:30:00 +0000</pubDate>
		<dc:creator><![CDATA[Ryan Billington]]></dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://chronopositron.com/2007/06/12/safari-on-windows/</guid>
		<description><![CDATA[For anyone who has yet to make the full switch to Mac (myself included), it looks like Apple is releasing Safari for Windows. It&#8217;s still in beta, but from the Apple site, it looks like it&#8217;s supposed to be much faster than Internet Explorer 7 and Firefox. I own a Mac (Powerbook G4 laptop) and [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>For anyone who has yet to make the full switch to Mac (myself included), it looks like Apple is releasing Safari for Windows.  It&#8217;s still in beta, but from the Apple site, it looks like it&#8217;s supposed to be much faster than Internet Explorer 7 and Firefox.  I own a Mac (Powerbook G4 laptop) and when I&#8217;m using it, Safari is my browser of choice.  Now I may have a new browser to use while I&#8217;m working on my desktop (I currently use Firefox 2).  Once I give it a few days testing, I&#8217;ll have to report back how it goes.  Anyways, here the link to the <a href="http://www.apple.com/safari/">page about Safari 3</a> and the <a href="http://www.apple.com/safari/download/">download page</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D+%28via+%40ChronoPositron%29&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://chronopositron.com/2007/06/12/safari-on-windows/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=4&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Safari.+On+Windows%3F&amp;link=http://chronopositron.com/2007/06/12/safari-on-windows/&amp;notes=For%20anyone%20who%20has%20yet%20to%20make%20the%20full%20switch%20to%20Mac%20%28myself%20included%29%2C%20it%20looks%20like%20Apple%20is%20releasing%20Safari%20for%20Windows.%20%20It%27s%20still%20in%20beta%2C%20but%20from%20the%20Apple%20site%2C%20it%20looks%20like%20it%27s%20supposed%20to%20be%20much%20faster%20than%20Internet%20Explorer%207%20and%20Firefox.%20%20I%20own%20a%20Mac%20%28Powerbook%20G4%20laptop%29%20and%20when%20&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chronopositron.com/2007/06/12/safari-on-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First post. Woo!</title>
		<link>http://chronopositron.com/2007/06/12/first-post-woo/</link>
		<comments>http://chronopositron.com/2007/06/12/first-post-woo/#comments</comments>
		<pubDate>Tue, 12 Jun 2007 10:17:00 +0000</pubDate>
		<dc:creator><![CDATA[Ryan Billington]]></dc:creator>
				<category><![CDATA[Misc]]></category>

		<guid isPermaLink="false">http://chronopositron.com/2007/06/12/first-post-woo/</guid>
		<description><![CDATA[Well, now that I have something presentable up for my template, it&#8217;s time for the standard first post. My first posts are generally very short and tend to end up looking something exactly like this. Rather than drag it on too long, I&#8217;ll just end it here and let everyone look at my new template [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Well, now that I have something presentable up for my template, it&#8217;s time for the standard first post.  My first posts are generally very short and tend to end up looking something exactly like this.  Rather than drag it on too long, I&#8217;ll just end it here and let everyone look at my new template <img src="http://chronopositron.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D+%28via+%40ChronoPositron%29&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://chronopositron.com/2007/06/12/first-post-woo/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-technorati">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=10&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-diigo">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=24&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this on Diigo">Post this on Diigo</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-mixx">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=4&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=First+post.+Woo%21&amp;link=http://chronopositron.com/2007/06/12/first-post-woo/&amp;notes=Well%2C%20now%20that%20I%20have%20something%20presentable%20up%20for%20my%20template%2C%20it%27s%20time%20for%20the%20standard%20first%20post.%20%20My%20first%20posts%20are%20generally%20very%20short%20and%20tend%20to%20end%20up%20looking%20something%20exactly%20like%20this.%20%20Rather%20than%20drag%20it%20on%20too%20long%2C%20I%27ll%20just%20end%20it%20here%20and%20let%20everyone%20look%20at%20my%20new%20template%20%3A%29&amp;short_link=&amp;shortener=tinyurl&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
</ul><div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chronopositron.com/2007/06/12/first-post-woo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.753 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2018-04-09 09:16:29 -->
