在 IIS 中启动 WCF 客户端
是否可以让 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果 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.