Angelo Lee's Blog
This is my kingdom .If i don't fight for it ,who will ?
posts - 546,comments - 6,views - 19万

1、通常情况下,WCF 只能调用使用默认构造方法。可以绕开这个限制,但这个服务实例模式只能是Single。需要将服务声明为

[ServiceBehavior(InstanceContextMode=InstanceContextMode.Single)]
posted on   Angelo Lee  阅读(134)  评论(0编辑  收藏  举报

点击右上角即可分享
微信分享提示