Noemax.WCFX.Channels Namespace : CompressionBindingElement Class |
This binding element specifies that compression will be applied on the messages exchanged through the channel.
'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
[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);
System.Object
System.ServiceModel.Channels.BindingElement
Noemax.WCFX.Channels.CompressionBindingElement
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