Castle windsor issues

The following code works fine except when hangfire enques it.

        container.AddFacility<TypedFactoryFacility>()
            .Register(
                Classes.FromThisAssembly()
                    .BasedOn(typeof (ICommandHandler<>))
                    .WithServiceAllInterfaces()
                    .LifestyleTransient(),
                Component.For<ICommandHandlerFactory>().AsFactory(),
                Component.For<ICommandDispatcher>().ImplementedBy(typeof (CommandDispatcher)));

“No component for supporting the service CommandDispatcher was found”

    public void Execute<TCommand>(TCommand command) where TCommand : ICommand
    {
         var handler = _commandHandlerFactory.Resolve<TCommand>();

        handler.Handle(command);
    }

    public void ExecuteAsync<TCommand>(TCommand command) where TCommand : ICommand
    {
        BackgroundJob.Enqueue(
            () => Execute(command));
    }

The async method will not work as hangfire windsor is unable to retrieve my command dispatcher service?

JobActivator.Current = new WindsorJobActivator(_container.Kernel);
GlobalConfiguration.Configuration
.UseSqlServerStorage("");
app.UseHangfireDashboard();
app.UseHangfireServer();

Seems to be not working at all for windsor?

public class HangFireInstallers : IWindsorInstaller
{
    public void Install(IWindsorContainer container, IConfigurationStore store)
    {
        container.Register(Component.For<ITest>().ImplementedBy<Test>());
    }
}

public class ContainerJobActivator : JobActivator
{
private IWindsorContainer _container;

    public ContainerJobActivator(IWindsorContainer container)
    {
        _container = container;
    }

    public override object ActivateJob(Type type)
    {
        return _container.Resolve(type);
    }
}

GlobalConfiguration.Configuration.UseActivator(new ContainerJobActivator(_hagFire));

No component for supporting the service Core.Services.Test was found

Simple example which did not work