I am developing a multi tenancy web app in .NET 6. I have so far got to a point where my main app will have all the default controllers, views, view components etc.
I have also got a separate class library per tenant where I can override view components etc, my app is finding the tenant specific view component fine, but when it tries to return the view from another one of the tenants which is registered, probably because I have registered multiple assemblies with embedded view components which all have the same path.
What direction should I be looking into to make this tenant aware and to find the correct view?
If you need anything more specific let me know I'll add in the comments / update the question.