WCF RIA 服务可以自行托管吗?

发布于 2024-08-28 06:29:23 字数 40 浏览 5 评论 0原文

我知道 WCF 可以自行托管。 WCF RIA 服务怎么样?谢谢!

I know WCF can be self hosted. how about WCF RIA Services? Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

揽月 2024-09-04 06:29:23

其实,经过小配置就可以自托管:

DomainServiceHost host = new DomainServiceHost(typeof(DomainService1), uri);
host.Description.Behaviors.Remove<AspNetCompatibilityRequirementsAttribute>();

Actually, it can be self-hosted after small configuration:

DomainServiceHost host = new DomainServiceHost(typeof(DomainService1), uri);
host.Description.Behaviors.Remove<AspNetCompatibilityRequirementsAttribute>();
做个ˇ局外人 2024-09-04 06:29:23

WCF RIA 服务构建在 WCF 之上,并且它们作为 WCF 服务公开。
请参阅 MSDN 上的 WCF RIA 服务

WCF RIA Services is build on top of WCF and they get exposed as WCF services.
See WCF RIA Services on MSDN.

泅人 2024-09-04 06:29:23

根据 MSDN 上的这个论坛帖子,这是不可能的之所以这样,是因为 RIA 服务设置了 ASP.NET 兼容性,因此需要 IIS 托管。

According to this forum thread on MSDN, it is not possible to do such thing because RIA services set the ASP.NET compatibility to be required, therefore needing the IIS hosting.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文