Is there a way to host Razor pages in console application using ServiceTask?

爱⌒轻易说出口 提交于 2019-12-01 00:38:00

You might be interested in the Razor Rockstars Console Application that uses embedded resource MVC Razor views that work with (or without) existing ServiceStack web services.

i.e. the example project shows the 3 different ways to host MVC Razor pages in ServiceStack:

  1. Service/Controller and Model - Using the Response DTO from the Web Service as a view model
  2. No Service/Controller - Directly using the Request DTO as the view model
  3. No Service/Controller or Model - Directly by using a dynamic view model
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!