WCF code examples for the .net users group talk
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
01.ReplaceSerializer
02.ServiceThrottling
03.WcfIdleSlowness
04.AsyncService
HttpClient
.gitignore
README.md

README.md

Demo 1. Replace serializer

Demonstrates how DataContractSerializer can be replaced with custom serializer (e. g. protobuf-net) by implementing custom message formatter.

Demo 2. Service throttling

Demonstrates how increase MaxConcurrentCalls value. After starting the service, execute

HttpClient http://localhost/hello/dotnetgroup-lt 50 64

and check ServiceModelService 4.0.0.0/Percent Of Max Concurrent Calls counter.

Demo 3. WCF idle slowness

Demonstrates WCF thread pool issue and a workaround.

Demo 4. Asynchronous WCF service, APM pattern

Demonstrates how AsyncPattern = true works. After starting the service, execute

HttpClient.exe http://localhost/data 1 5

Note, that code provided when working with Task library, does not cover all the cases for handling exceptions.