Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • 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 to disk using the Enterprise Library. This is because...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 08-03-2006, 12:00 AM
    Filed under: .NET, CodeSnippets, WinFX, WCF, Enterprise Library
  • 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 primitive types, common objects, enums, Collections...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 07-31-2006, 12:00 AM
    Filed under: .NET, CodeSnippets, WinFX, WCF
  • 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. So using the power that .NET delegates give us,...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 05-19-2006, 12:00 AM
    Filed under: .NET, CodeSnippets, WinFX, WCF
  • 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 using the ThreadPool or instantiating a thread...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 05-18-2006, 12:00 AM
    Filed under: .NET, CodeSnippets, WinFX, WinFX: January CTP, WCF
  • 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. My goal was to have several custom headers...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 04-26-2006, 12:00 AM
    Filed under: .NET, CodeSnippets, WinFX, WinFX: January CTP, WCF
  • 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 can be optimized in several ways: 1) Create a...
    Posted to Miscellaneous Debris (Weblog) by AvnerK on 04-25-2006, 12:00 AM
    Filed under: .NET, CodeSnippets, WinFX, WinFX: January CTP, WCF
Page 1 of 1 (6 items)