WCF, Windows Store apps, and reliable sessions

502 views Asked by At

Is it possible to use WCF reliable sessions in Windows Store apps?

I am writing a Windows Store app in Visual Studio 2012 Professional using C#. I am trying to access a WCF service using sessions. I can't use WSHttpBinding because Windows Store apps don't support it. I found that Windows Store apps DO support NetHTTPBinding, which supports reliable sessions, but I can't seem to access the ReliableSession property of the binding, nor can I access the constructor that takes "bool reliableSessionEnabled" as a parameter.

Is there ANY binding that supports sessions for Windows Store apps?

-Joe

1

There are 1 answers

2
Damir Arh On BEST ANSWER

As stated in the documentation (Version Information section), ReliableSession property is not available for Windows Store apps, i.e. WCF reliable sessions are not supported.

This article describes the complete subset of WCF functionalities available in Windows Store apps. Although NetHttpBinding is included, ReliableSessionBindingElement is not.