Client side of WCF Digest authentication

It is very straightforward, but not for portable devices such as Windows Phone.   For portable devices, one has to implement a message inspector to add Digest authentication.