开发者

how to access SessionMode in WCF

.NET framework 4.0 How do you programatically access SessionMode in WCF on the client side? How do you programaticall开发者_开发百科y access SessionMode in WCF on the server side?


found answer here http://social.msdn.microsoft.com/Forums/en/wcf/thread/bf1ecbec-4eda-4dc5-ba26-c7ad43247b93

ServerSide

System.ServiceModel.Description.ContractDescription.GetContract(typeof(IService1)).SessionMode.ToString()

ClientSide

 System.ServiceModel.Description.ContractDescription.GetContract(typeof(ServiceReference1.IService1)).SessionMode
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜