using System;
using StructureMap;

namespace Reactive.Config.StructureMap
{
    public static class ContainerExtensions 
    {
        public static void ReactiveConfig(this ConfigurationExpression config, Action<IReactiveConfigRegistry> action)
        {
            config.For<IKeyPathProvider>().Use<NamespaceKeyPathProvider>();
            config.For<IConfigurationResultStore>().Singleton().Use<ConfigurationResultStore>();

            var configRegsitry = new ReactiveConfigRegsitry(config);

            action(configRegsitry);

            config.For<IConfigurationProvider>().Use<ConfigurationProvider>();
        }
    }
}
using System;
using StructureMap;

namespace Reactive.Config.StructureMap
{
    public static class ContainerExtensions 
    {
        public static void ReactiveConfig(this ConfigurationExpression config, Action<IReactiveConfigRegistry> action)
        {
            config.Scan(s =>
            {
                s.AssemblyContainingType<IConfigured>();
                s.WithDefaultConventions();
            });

            config.For<IConfigurationResultStore>().Singleton().Use<ConfigurationResultStore>();
            config.For<IKeyPathProvider>().Use<NamespaceKeyPathProvider>();

            var configRegsitry = new ReactiveConfigRegsitry(config);

            action(configRegsitry);

            config.For<IConfigurationProvider>().Use<ConfigurationProvider>();
        }
    }
}
Fix StructureMap missing default convention for React.Config
Fix StructureMap missing default convention for React.Config
