Reputation: 623
I am developing an app to serve as a back-end for different clients. Some of the clients are web apps (Vue), some are mobile clients and some are Winforms apps. To keep things DRY and tidy, I want to serve all using Servicestack .Net core. I have some issues regarding the architecture of this app:
One would be that in the documentation it says that is recommended to use POCO's as the DTO, but in order to reuse those POCO's across all apps, they should be in a separate dll, which will conflict with the requirement that all DTOs should be in the same namespace as the services.
What is the best way to organize such a project?
Upvotes: 1
Views: 57
Reputation: 143369
If you have different Apps hosting the same ServiceStack Services then they can all share the same ServiceModel.dll
.
You can find an example of this in Hello Mobile Project which contains an example multiple different ServiceStack hosts sharing the same common libraries, including between .NET Core and .NET Framework Apps via multi-targeting.
Upvotes: 1