Contents tagged with WinFX
-
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 … more
-
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 … more
-
Share your interfaces - avoid static proxies.
When using WCF services, we have several options for creating the proxies. We can create them statically using SVCUTIL or the build-in IDE support (Add Service Reference...), or we can generate them … more
-
Deperplexing WCF errors pt. 3 - Interfaces and KnownTypes
Another error message that stumped me today (after I had removed the IsOneWay parameter and actually got to see it) was the following exception:System.ServiceModel.CommunicationExceptionThe server … more
-
Deperplexing WCF errors pt. 2 - IsOneWay swallowing exceptions
The first step in understanding WCF error messages is making sure you actually get them.You can have an OperationContract defined with the IsOneWay parameter set to True, thus optimizing it by not … more
-
Deperplexing WCF errors pt. 1 - CommunicationObjectAbortedException for security mismatch
As a follow-up to this post: another reason why we get CommunicationObjectAbortedExceptions is because our client channel definition does not send any credentials (using a binding that has the … more
-
Indigo Errors Perplexing
I was writing a very simple WCF service. Nothing fancy - just returning an array of structs via TCP, just like 3 others already implemented. Started testing, stepped through the server code, returned … more
-
Serializing a Binding object - TimeSpan serialization error.
Seeing as our project is all distributed and stuff, with various services possibly running on different servers, we wanted to have the whole service address business be flexible, and not rely on … more
-
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 … more
-
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 … more