We have an ASP.NET MVC application that has several different areas. There are 2 areas that use the same C # classes at our service level, but target different baseline data. I want these services to receive different dependencies based on the value in the route data.
It is hard to explain, and I am retelling the names of my class / area. Illustrate: 
When the "Code" is in the route data, I want to get different dependencies entered when they are not there.
I understand that there is a .When () method that you can use for conditional bindings, but I'm not sure how to get route data from there. I could also do this based on the area from which it was called, however this is not preferred in my case (I think we can use Codex in this other area)
Is it possible?
source share