Reputation: 1846
When creating a new WASM ASP.NET Core Hosted Blazor app, three projects are created by default:
Is it possible to Add multiple Server projects to a solution and be able to call the controllers in them? Eg:
The reason behind this is because our team wants to encapsulate functional areas into their own projects, similar to vertical slice architecture.
Upvotes: 0
Views: 358
Reputation: 273274
Yes, it is possible. You can even call servers outside this Solution and from other companies written in other languages.
But with multiple servers you will have to configure CORS on all (but one) of them.
because our team wants to encapsulate functional areas into their own projects
This is also very much possible with 1 Server. Split the areas into Class libraries and use the main Server project to host them collectively. This would be my preference.
Upvotes: 1