DotNetCompression Class Reference for Windows Phone
PermitStateful Property (FiMessageEncodingBindingElement)

Gets and sets the stateful session encoding mode that will be used by the Fast Infoset message encoding.
Public Property PermitStateful As System.Boolean
Dim instance As FiMessageEncodingBindingElement
Dim value As System.Boolean
instance.PermitStateful = value
value = instance.PermitStateful
public System.bool PermitStateful {get; set;}
public read-write property PermitStateful: System.Boolean; 
public function get,set PermitStateful : System.boolean
public: __property System.bool get_PermitStateful();
public: __property void set_PermitStateful( 
   System.bool value
property System.bool PermitStateful {
   System.bool get();
   void set (    System.bool value);

The same FastInfosetSessionMode must be used on both communicating sides.

Note that in order to use the stateful encoding mode it is required that (a) messages are encoded and decoded in the same order on both sides, (b) messages are encoded and decoded one by one and that no message is encoded or decoded in parallel with another, and (c) messages are always fully decoded and that no message is only partially decoded. Satisfying all three requirements is not always possible when using a full duplex bidirectional transport in a multi-threaded environment; using the stateful encoding mode in such conditions might lead to channel faults.


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


FiMessageEncodingBindingElement Class
FiMessageEncodingBindingElement Members

Send Feedback