WCF – Advanced Error Handling and IErrorHandler

March 23, 2009

Update 02/02/10:Please note the version displayed here doesn't reflect the version published to CodePlex, there were some changes and the behavior extension element was removed for the time being.Check the Show Cases at CodePlex for code samples.Update 24/03/09:The attachment was updated with a new version. (Fixed a small bug) The built-in extensibility point for handling errors is by implementing “IErrorHandler” interface and hooking it up into the channel dispatchers     public interface IErrorHandler     {         bool HandleError(Exception error);         void ProvideFault(Exception error, MessageVersion version, ref Message fault);     } ...
tags: ,
33 comments

WCF and Enum Serialization

March 21, 2009

It’s been a long time since I posted anything, hopefully, the writer’s block stops now :) This post is about using Enums in WCF communications. As most of you WCF developers know by now, if you are exposing an enum in your service (as a result or a paramter) the client’s generated proxy will contain the enum and everything will work perfectly fine. Unfortunately, using enum creates some sort of coupling between the contracts of the two tiers where passing an enum value which exists in one side only would yield a serialization exception. ...
tags: ,
15 comments

Long Time

March 11, 2009

It’s been a really long time since my last post, I feel like I’m having a writer’s block :) I did have a period of stressed work at my job, this is why I hardly got the chance to think about posting something. We’ve made progress with the smart router layer I am building, plus I had done some work in WPF – built some controls needed for several applications. I hope I will get the chance to wrap things up and summarize the key things I encountered so I can share it here in...
tags:
2 comments