I tried using
builder.RegisterRuleRepository(i => i.Assembly(this.ThisAssembly).PrivateTypes());
but the private types were ignored. I believe the issue could be with
RegisterRuleRepository
not taking into account the scanAction that was provided to the function when loading the types. (At least when debugging that was the place the types started being ignored.)