WCF服务Appdomain详细信息 [英] WCF service Appdomain details

查看:93
本文介绍了WCF服务Appdomain详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读WCF书,它指出客户端可以使用在相同AppDomain或不同应用程序域上运行的服务.

I am reading WCF book.It states that the client can consume service running on same AppDomain or different application Domain.

假设我正在IIS本地主机中创建服务.

Suppose I am creating a service in IIS localhost.

示例

localhost\TestService\Service.svc (WCFService Website).

我的客户在

d:\demo\client (windows form)

  • 是否表示客户端正在运行 不同的AppDomian和Service是 在不同的Appdomain上运行?
  • 我如何获得客户和服务 两者都在同一AppDomain上运行?
    • Does it mean client is running on different AppDomian and Service is running on different Appdomain?
    • How can i have client and service both running on same AppDomain?
    • 推荐答案

      否.

      这本书说将服务和客户端放在同一AppDomain中是可能的,而不是必需的,甚至在所有情况下都是可能的.

      The book is saying that it's possible to have the service and client in the same AppDomain, not that it's necessary, or even possible in all cases.

      例如,您的Windows窗体应用程序既托管服务又调用同一服务.

      An example would be if your windows forms application was hosting a service and also calling the same service.

      这篇关于WCF服务Appdomain详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆