WCF-Xtensions Class Reference for Mono
CompressionBindingElement Class
Members 






This binding element specifies that compression will be applied on the messages exchanged through the channel.

Object Model
CompressionBindingElement Class
Syntax
'Declaration
 
Public Class CompressionBindingElement 
   Inherits System.ServiceModel.Channels.BindingElement
'Usage
 
Dim instance As CompressionBindingElement
public class CompressionBindingElement : System.ServiceModel.Channels.BindingElement 
public class CompressionBindingElement = class(System.ServiceModel.Channels.BindingElement)
public class CompressionBindingElement extends System.ServiceModel.Channels.BindingElement
public __gc class CompressionBindingElement : public System.ServiceModel.Channels.BindingElement 
public ref class CompressionBindingElement : public System.ServiceModel.Channels.BindingElement 
Remarks
This binding element must be added to the CustomBinding before the message encoding binding element, or can be plugged into an existing and already configured binding using the PlugIn method.
Example

[C#]

// Adding compression to custom binding

CustomBinding binding =new CustomBinding();

binding.Elements.Add(new CompressionBindingElement());

binding.Elements.Add(new FiMessageEncodingBindingElement());

binding.Elements.Add(new TcpTransportBindingElement());

[C#]

// Plugging in compression into standard binding

Binding binding = new WSHttpBinding();

CompressionBindingElement compression = new CompressionBindingElement();

binding = compression.PlugIn(binding);

Inheritance Hierarchy

System.Object
   System.ServiceModel.Channels.BindingElement
      Noemax.WCFX.Channels.CompressionBindingElement

Requirements

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

Reference

CompressionBindingElement Members
Noemax.WCFX.Channels Namespace

Send Feedback