I have an interface that has 2 implementation IMYService MyServiceA MYServiceB
Here the Implementation is dependent on some data in the request header used by the construtor of the Services like If Header has value of internalId then use MyServiceA and pass that Id to the services in constructor while if the value is missing use MyServiceB where as this service construct does not expect id.
My Controller is defined with DI for IMyservice