Noemax.WCFX.Behaviors Namespace : EnvelopeBehavior Class |
'Declaration Public Class EnvelopeBehavior
'Usage Dim instance As EnvelopeBehavior
public class EnvelopeBehavior
public class EnvelopeBehavior
public class EnvelopeBehavior
public __gc class EnvelopeBehavior
public ref class EnvelopeBehavior
The EnvelopeBehavior serializes the message body as a Fast Infoset document and compresses it using a selectable compression algorithm. As a result, a compact binary representation of the original message body is produced. This compact binary representation is referred to as an envelope.
Applying the EnvelopeBehavior requires no changes to the binding configuration. The EnvelopeBehavior can be used to reduce message size even when the binding cannot be modified.
When message security is being used, the EnvelopeBehavior not only reduces message size but also increases processing performance since the processing overhead incurred by message security is largely dependent on message size.
Even though the use of the EnvelopeBehavior will almost always result in significantly reducing message size, the final size of the message transmitted by the transport layer will be determined by the message encoding specified by the binding being used. For the same envelope, a binding which uses a binary message encoding (such as Fast Infoset or WCF Binary) will provide relatively better compactness and processing performance then a binding which uses a non-binary message encoding.
This class is not available in Silverlight 4, Silverlight 3, .NET Compact Framework 3.5.System.Object
Noemax.WCFX.Behaviors.EnvelopeBehavior
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