[ServiceBehavior(
InstanceContextMode =
InstanceContextMode.Single, //表示所有的请求都用一个服务实例来处理
ConcurrencyMode =
ConcurrencyMode.Multiple, // 表示服务类支持多线程
IncludeExceptionDetailInFaults
= true)] //
仅在开发阶段将其设置成true,能将服务端的异常作为错误的消息发出,必便对服务进行故障排除。
原文:http://www.cnblogs.com/lihongchen/p/3613396.html