Autofac - Can't Inject Types
===

Having some problems getting Autofac to register my types.

I have the following setup based on another stack overflow post.
http://stackoverflow.com/questions/4776396/validation-how-to-inject-a-model-state-wrapper-with-ninject/4851953#4851953

My setup is as follows    

    public interface IValidator : IDependancy

    public abstract class Validator<T> : IValidator
    
    public class UserValidator : Validator<UserModel>

    sealed class ValidationProvider : IValidationProvider
    {
        private readonly Func<Type, IValidator> _validatorFactory;

        public ValidationProvider(Func<Type, IValidator> validatorFactory)
        {
            _validatorFactory = validatorFactory;
        }
    ...

My Autofac config is

    builder.RegisterAssemblyTypes(AppDomain.CurrentDomain.GetAssemblies())
           .Where(t => t.BaseType==(typeof(Validator<>))).InstancePerDependency()
           .As<IValidator>();

                
    builder.RegisterType(typeof (ValidationProvider)).As<IValidationProvider>();

    builder.Register<Func<Type, IValidator>>(c =>
    {
          var cc = c.Resolve<IComponentContext>();
          return type =>
          {
              var valType = typeof(Validator<>).MakeGenericType(type);
              return (IValidator) cc.Resolve(valType);   
          }; 
     });

I seem to resolve this properly to inject. Can point me in the right direction here?