IIS7 / WPAS:在同一个AppDomain中的多个WCF服务? [英] IIS7 / WPAS: Multiple WCF services in same AppDomain?

查看:211
本文介绍了IIS7 / WPAS:在同一个AppDomain中的多个WCF服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果主机IIS7中或WPAS我的WCF服务,是有可能将两个或更多的服务加载到相同的AppDomain使得它们可以共享静态变量?

If host my WCF services in IIS7 or WPAS, is it possible to load up two or more services into the same AppDomain so that they can share static variables?

推荐答案

当然,你可以在网络应用程序公开的终端数量作为你想要的(甚至是不同的WCF服务)。这不应该被限定于IIS或WPAS

Sure you can expose as many Endpoints within a Web Application as you want (even of different WCF Services). This should not be limited to either IIS or WPAS.

这样做将使您能够访问的任何类型的共享数据的。尽管我通常会反对使用静态变量共享信息告知(但当然,我不知道您的要求)。

Doing so will enable you to access any kind of shared data. Even though I would normally advise against using static variables to share information (But of course I don't know your requirements).

这篇关于IIS7 / WPAS:在同一个AppDomain中的多个WCF服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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