Search
Project Description
Collection of WCF extensions. The current version provides a compression channel.


WCF Compression Channel
The compression channel can be used as any other channel, simply by adding it to your custom binding. This can be done both in configuration and in code.

CompressionBindingElement element = new CompressionBindingElement();
element.Algorithm = CompressionAlgorithm.Deflate;
element.Level = CompressionLevel.Maximum;

CustomBinding binding = new CustomBinding();
binding.Elements.Add(element);
binding.Elements.Add(SecurityBindingElement.CreateSspiNegotiationBindingElement());
binding.Elements.Add(new TextMessageEncodingBindingElement());
binding.Elements.Add(new HttpTransportBindingElement());
Last edited Jan 21 2008 at 10:19 AM by Morty, version 5
Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.1.11.18365