public static void RavenDbConfiguration(this Registry registry, Action <IDocumentStore> configuration)
        {
            var action = LambdaDocumentStoreConfigurationAction <RavenDbSettings> .For(configuration);

            registry.For <IDocumentStoreConfigurationAction>()
            .Add(action);
        }
        public static MultipleDatabaseRegistrationExpression <T> ConnectToRavenDb <T>(this Registry registry, Action <IDocumentStore> configuration = null) where T : RavenDbSettings
        {
            registry.ForSingletonOf <IDocumentStore <T> >().UseInstance(new DocumentStoreInstance <T>());

            if (configuration != null)
            {
                var action = LambdaDocumentStoreConfigurationAction <T> .For(configuration);

                registry.For <IDocumentStoreConfigurationAction <T> >()
                .Add(action);
            }

            return(new MultipleDatabaseRegistrationExpression <T>(registry));
        }