WCF-Xtensions

WCF-Xtensions Samples

READY-TO-RUN PROJECTS WITH SAMPLE CODE

Extending HTTP

Extending an BasicHttpBinding

Demonstrates how to extend an already existing BasicHttpBinding with content negotiation, HTTP compression and Fast Infoset as message encoding to improve communication performance over an Internet connection.

Download

Extending a REST binding

Demonstrates how to extend a WebHttpBinding used for REST communication with content negotiation, HTTP compression and Fast Infoset as message encoding.

Download

Extending an IIS HTTP endpoint

Demonstrates how to extend an IIS-hosted HTTP endoint with content negotiation, HTTP compression and FastInfoset as message encoding.

Download

Selective Compression

Demonstrates the use of the selective compression mode. Compression is applied only to those operations that are marked with the [EnableCompression] attribute.

Download

Extending an HTTP endpoint for faster file transfers

Demonstrates the binding configuration for transfering files over an Internet connection using the streamed transfer mode, payload compression and Fast Infoset message as encoding.

Download

Extending an HTTPS endpoint for faster file transfers

Similar to the sample titled "Extending an HTTP endpoint for faster file transfers" but instead of HTTP it uses HTTPS with the TransportWithMessageCredential security mode.

Download

A CustomBinding with LiteHTTP in code

Demonstrates how to programmatically prepare a custom binding with LiteHTTP in code.

Download

A CustomBinding with LiteHTTP in config file

Demonstrates how to prepare a custom binding with LiteHTTP in a configuration file.

Download

LiteHTTP with TLS security

Demonstrates how to enable TLS security with the LiteHTTP transport.

Download

Basic HTTP authentication using LiteHTTP and TLS security

Demonstrates how to use TLS and Basic HTTP authentication to securely authenticate an inbound connection using username and password.

Download

Transport Compression

Extending Net.Tcp with DEFLATE transport compression

Demonstrates the use of DEFLATE transport compression with the system-provided Net.Tcp transport. DEFLATE is usually preferred when communicating over slower networks.

Download

Extending Net.Tcp with LZF4 transport compression

Demonstrates the use of LZF4 transport compression with the system-provided Net.Tcp transport. LZF4 is usually preferred when communicating over faster networks.

Download

Envelope behavior & message security

Sample 1

In this sample the EnvelopeBehavior is applied by selectively adding an [EnvelopeBehavior] attribute to the service contract operations that require it. This option is useful when the EnvelopeBehavior is not required to be used by all operations of the service. Using this option requires changing the source code.

Download

Sample 2

In this sample the EnvelopeBehavior is applied by using the XChannelFactory and XServiceHost. This options enables you to quickly apply the EnvelopeBehaviour to all endpoints and operations that are exposed by the service. Using this option requires changing the source code.

Download

Sample 3

In this sample the EnvelopeBehavior is applied as an endpoint behavior in the application or web configuration file. The EnvelopeBehavior is applied to all operations exposed by the affected endpoint. This option does not require access to the source code, any of your own or third-party WCF clients or services can be extended using this approach.

Download

Sample 4

This is a set of three samples that demonstrate multiple ways of using the EnvelopeBehavior in order to improve the performance of a custom binding that is using message security.

Download

WebSocket

Duplex communication

Demonstrates the full-duplex capabilities of the WebSocket transport by sending one-way callbacks from the server to its connected clients.

Download

WebChat

Demonstrates interoperability between the WebSocket transport of WCF-Xtensions and web browsers. Web Chat application implemented using WebSocket transport. Consists of a self-hosted WCF chat server that handles connections from web browsers and console WCF clients that communicate using WebSocket.

Download

Windows Phone 7

Demonstrates WebSocket communication between a Windows Phone 7 application and a desktop .NET server. Requires Visual Studio v10+.

Download

Windows Phone 8

Demonstrates WebSocket communication between a Windows Phone 8 application and a desktop .NET server. Requires Visual Studio v12+.

Download

Integrated compression

Demonstrates the use of the WebSocket "per-message" compression extension, which is a stateful transport compression method that is applied to the payload of the WebSocket protocol frames.

Download

Duplex communication with Compact Framework

Demonstrates how to use the WebSocket transport for duplex communication between an application running on Compact Framework and a .NET server. The server performs callbacks to the client application that is running on a CF device.

Download

Duplex communication with TLS

Demonstrates how to use the WebSocket transport for duplex communication between an application running on Compact Framework and a .NET server. This sample uses a TLS-secured WebSocket connection and performs mutual authentication using X509 certificates.

Download

Request/Response WebSocket

Demonstrates request/response communication between an application running on Compact Framework and a .NET server using the WebSocket transport.

Download

WebSocket server

A simple server and client application running on Compact Framework and using the WebSocket transport to exchange messages.

Download

WebSocket streaming

Demonstrates how to stream large data using the lower-level message processing API of WCF. A CF client downloads a text file from the server.

Download

Request concurrency

This application uses multiple threads to perform a number of concurrent requests through a single channel using request concurrency capabilities of WCF-Xtensions' WebSocket implementation.

Download

Compact Framework

Using the LiteHTTP transport

Demonstrates request/response communication between an application running on Compact Framework and a .NET server using the LiteHTTP transport and the Fast Infoset message encoding.

Download

LiteHTTP server

A simple server and client application running on Compact Framework and using the LiteHTTP transport and the Fast Infoset message encoding.

Download

Polling Compact Framework server

A service running on Compact Framework, listening on an HTTP endpoint and receiving polling requests from clients.

Download

REST server

A service running on Compact Framework and handling HTTP REST requests from console application using the WCF REST API.

Download

HTTPS

Demonstrates the use of HTTPS security with the LiteHTTP transport on Compact Framework.

Download

HTTPS server endpoint

Demonstrates how to create a server that listens on an HTTPS endpoint on Compact Framework.

Download

Message contract

A Compact Framework application using LiteHTTP as transport and Fast Infoset as message encoding to communicate with a WCF service using the message contract definition.

Download

Get started today.

Download Now