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

查看:27
本文介绍了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 localhost 中创建了一个服务.

Suppose I am creating a service in IIS localhost.

例子

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

我的客户在

d:\demo\client (windows form)

  • 这是否意味着客户端正在运行不同的 AppDomian 和 Service 是在不同的 Appdomain 上运行?
  • 我怎样才能拥有客户和服务两者都在同一个 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天全站免登陆