在 IIS 中启动 WCF 客户端

发布于 2024-10-07 05:49:05 字数 206 浏览 0 评论 0原文

是否可以让 WCF 客户端使用 IIS 中的 net.tcp (netTcpBinding) 双工持久连接?

即,正常的方法是将其托管在控制台应用程序中或作为 Windows 服务,我的问题是,是否可以使用共享托管类型的环境来运行 WCF 客户端应用程序。

即应用程序永远无法从外部访问,应用程序只是连接到另一个服务并通过 Internet 使用远程 WCF 服务。

It is possible to have WCF Client that connects persistantly using duplex over net.tcp (netTcpBinding) from IIS?

i.e. the normal way would be to host it in a console app or as a windows service, my question is, could one use a shared hosting type of environment to run a WCF Client application.

i.e. the application isn't ever accessible from the outside, the application just connects to another service and consumes a remote WCF service over the internet.

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

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

发布评论

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

评论(1

怎会甘心 2024-10-14 05:49:05

如果 ASP.NET 应用程序是客户端,您可以尝试将 WCF 客户端加载到应用程序或会话变量中。

我已经用系统计时器做了一些稍微类似的事情,并且效果很好。

If the ASP.NET app is the client, you could try loading the WCF Client into an Application or Session variable.

I've done something slightly similar with a System Timer and it worked a treat.

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