Wednesday, July 24, 2013

WCF Template auto-redirects

Just a post to consolidate the various information on the net regarding preventing WCF from redirecting upon a request passing or not passing a trailing slash when it differs from the UriTemplate declared on the service.

The bits needed....

First of a message inspector to check for the wcf redirect property and remove it from the Message.

Next you need to implement a custom contract behavior to make sure its applied high enough up the pipeline to prevent WCF doing its usual redirect.

Finally add it to your service host in the OnOpening override. And you should now find you no longer get redirected when passing an incorrect url to your WCF application.

Friday, July 5, 2013

Liquid Nerdz

Something the sproglets are bound to love and pretty good winter drink, called it liquid nerdz as they are as close to the taste as I could think of ;)

Throw the below into a mug add hot water and your good to go.

1 Twinings echinacea and raspberry teabag

1 decent tsp good quality honey

1 decent sized lemon

1 tsp raw sugar

Leave to brew after honey has dissolved .

Bit of a help to the immune system over winter and shouldn't have any trouble getting the kids to drink it :)