One of the potential sources of the problem is that while the kernel is thread safe, you will need to click one switch, otherwise you are in a race so that everything switches as an atomic action to in-flight requests. (This is, in principle, I did not consider the code given this question).
Having said that, nothing comes to mind, which can lead to a problem.
, / , , , , , , . , AutoFac , Factory , , . .
.ToMethod(ctx=> return /* Toggle-based creation*/)? (, , Rebind). ( ) .