Miscellaneous Debris

Avner Kashtan's Frustrations and Exultations

Browse by Tags

All Tags » CodeSnippets » WinFX (RSS)
WCF Serialization Part 2d: A Solution, a Conclusion and a Contribution
This is the last part of my continuing saga of serializing dictionaries over WCF and beyond. Quick recap: While WCF allows me to serialize an IDictionary easily, trying to serialize that dictionary later for other uses fails - specifically, caching it...

Posted Thursday, August 03, 2006 4:23 PM by AvnerK | 1 comment(s)

WCF Serialization part 1: Interfaces, Base classes and the NetDataContractFormatSerializer
One of WCF's goals is interoperability with standard protocol stacks, like WSE or other WS-* implementations. This led, I am told, to the design of WCF's default object serializer - the DataContractFormatSerializer. This handy little engine serializes...

Posted Monday, July 31, 2006 5:46 PM by AvnerK | 3 comment(s)

Filed under: , , ,

Context-Bound Thread Queuer - FunFun.
As I mentioned in my previous post, I have a need to consistently pass an operation context to any thread I choose to spin. Doing so manually, as I did here, involves a lot of ugly, repetitive code for every thread. A lot of room for mistakes and bugs...

Posted Friday, May 19, 2006 7:12 PM by AvnerK | 14 comment(s)

Filed under: , , ,

OperationContext is ThreadStatic
WCF Services tend to be big, heavy duty things. When I write a service I often want it to do a lot of work for a lot of clients, and it should do it efficiently. This usually means that I will use multithreaded code to get things done concurrently. Whether...

Posted Thursday, May 18, 2006 5:29 PM by AvnerK | 6 comment(s)

Adding custom headers to every WCF call - a solution
At last, a solution presented itself. While I must admit that at first I was very skeptical of the extensibilty model for WCF which seemed far too involved and complicated, but after implementing a simple extension I must say it's simple and quite intuitive...

Posted Wednesday, April 26, 2006 11:20 AM by AvnerK | 6 comment(s)

How do I add a custom header to every WCF message?
One thing I still haven't managed to do is create my proxy in such a way that a custom header is added to every call that is made through that proxy. Currently, this is done by instantiating a new OperationContext around each call through the proxy. This...

Posted Tuesday, April 25, 2006 3:10 PM by AvnerK | 9 comment(s)

Adding custom headers to a WCF message - Jan CTP
Guy Burstein, again, writes about adding custom headers to a call made by a WCF proxy. This is all very nice and well, but his code only works with the Feb. CTP of WCF, while I'm still using January here. The differences seemed subtle at first - his instantiation...

Posted Tuesday, April 25, 2006 3:03 PM by AvnerK | 2 comment(s)

More Posts