WCF service Appdomain details

丶灬走出姿态 提交于 2019-12-13 03:00:01

问题


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

Suppose I am creating a service in IIS localhost.

example

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

and my client is in

d:\demo\client (windows form)
  • 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?

回答1:


No.

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.

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



来源:https://stackoverflow.com/questions/2568809/wcf-service-appdomain-details

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!