public static void Register(IWindsorContainer container, SingleBinding binding)
        {
            ComponentRegistration<object> registration = Component.For(binding.Service);

            registration = ApplyResolver(registration, (dynamic)binding.Resolver);

            registration = ApplyLifestyle(registration, binding.Lifestyle);

            registration = ApplyName(registration, binding.Name);

            container.Register(registration);
        }
        public static void Register(global::StructureMap.IContainer container, SingleBinding binding)
        {
            container.Configure(ce =>
                {
                    var registration = ce.For(binding.Service);

                    registration = ApplyLifestyleSingle(registration, binding.Lifestyle);

                    var unnamed = ApplyResolver(registration, binding.Resolver);

                    ApplyName(unnamed, binding.Name);
                });
        }