It’s part-7 of WCF 4.5 Tutorial Series and we are going to explore further new features of Windows Communication Foundation v4.5. Today, we will discuss about the following features:
- Support for UDP Binding
- Compression Support in Binary Encoder
WCF – UDP Binding Support
Support for UDP Binding was much awaited in Windows Communication Foundation. If we compare TCP with UDP as protocol, the difference between the two is:
WCF – Compression support for Binary Encoder
In Windows Communication Foundation v4.5, Compression support is available for Binary Encoder through CompressionFormat property. This Compression feature can work for HTTP, HTTPS as well as TCP protocol. CompressionFormat property can have one of the possible CompressionFormat enum values:
- Deflate – Deflate Compression
- GZip – GZip Compression
- None – No compression at all.
For compression support to work properly, there are few constraints as follows:
- Client as well as Service both must have configure CompressionFormat property. Client and Service will not be unable to communicate (throwing a protocol mismatch exception) unless both agreed to use compression.
- Custom binding will be used to enable compression support for Binary Encoder.
Hopefully, New amazing features discussed in this WCF Tutorial will further help out to WCF (Windows Communication Foundation) developer.
Top 10 Interview Questions and Answers Series:
- Top 10 WCF Interview Questions
- Comprehensive Series of WCF Interview Questions
- Top 10 HTML5 Interview Questions
- Top 10 ASP.NET Interview Questions
- Comprehensive Series of ASP.NET Interview Questions
- Top 10 ASP.NET MVC Interview Questions
- Top 10 ASP.NET Web API Interview Questions
- Top 10 ASP.NET AJAX Interview Questions