A partial solution for my particular case: How to change a constructor argument’s value with the depenency injection.