This project is read-only.

Extending bootstrapper

May 14, 2012 at 10:54 AM
Edited May 14, 2012 at 11:00 AM

I have become a real fan of Bootstrapper.  However, I'd like to extend Bootstrapper and lack the knowledge how to to do it.  For example, I can dynamically configure enterprise currently as follows. However, I can only do it in a single implementation of IUnityRegistration.  I'd like each assembly to configure its own logging, exception handling etc.

public class EnterpriseLibraryUnityRegistration : IUnityRegistration
    public void Register(IUnityContainer container)
        var builder = new ConfigurationSourceBuilder();
        var cryptography = builder.ConfigureCryptography();
        /* Configure Cryptography */
        var logging = builder.ConfigureLogging();
        /* Configure Logging */
        var exceptionHandling = builder.ConfigureExceptionHandling();
        /* Configure Logging */
        var configSource = new DictionaryConfigurationSource();
        var extension = new EnterpriseLibraryCoreExtension(configSource);

I'd appreciate any guidance how to extend bootstrapper to achieve my goal?