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
精彩评论