Miscellaneous Debris

Avner Kashtan's Frustrations and Exultations

Browse by Tags

All Tags » WinFX » .NET (RSS)
Code Generation, SharedContracts and The Sneaky Bug
A short discussion ensued today on the topic of Code Generation tools like CodeSmith. Like Unit Testing, code generation is a topic that some people swear by and some reject out of hand. I'm sure this is mostly a question of getting used to the concept...

Posted Wednesday, August 16, 2006 6:28 PM by AvnerK | 3 comment(s)

Filed under: , ,

Aggregated Interface Implementation
I've been struggling around the aggregation used in WCF's Binding object model, as implemented in the GetProperty<T> method (see relevant discussions with Nicholas Allen from the WCF team here and here ), and I'm struck by how the need...

Posted Tuesday, August 08, 2006 9:01 AM by AvnerK | 4 comment(s)

Filed under: , , , ,

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: , , ,

WCF and Non-polymorphic bindings
I've been using WCF for the past few months and on the whole, I think the programming model works. I'm getting to really like the extensibility model and the whole deal seems to click rather well. One place where I feel it's a bit broken,...

Posted Monday, July 31, 2006 9:06 AM by AvnerK | 4 comment(s)

Filed under: , ,

My Singleton is disappearing!
WCF's Instance Context model allows me to specify my service's instantiation behavior - I can get a new instance for every call, have WCF manage a session for me and keep an instance per session, or just get lazy and have my service instantiated as a...

Posted Monday, June 19, 2006 5:29 PM by AvnerK | with no comments

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)

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 dynamically using the ChannelFactory<T> or GenericProxy<T>...

Posted Wednesday, May 17, 2006 3:24 PM by AvnerK | 4 comment(s)

Filed under: , ,

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.CommunicationException The server did not provide a meaningful reply; this might be caused...

Posted Tuesday, May 16, 2006 4:40 PM by AvnerK | with no comments

More Posts Next page »