Browse by Tags
All Tags »
WCF »
DEV (
RSS)
MEF at the SDP today i was lecturing at the SELA SDP about building composite WPF shell application using MEF . first I want to thanks all attendant that was there despite of the latency in the schedule. second I want to thanks Yaniv Rodenski for his part in the lecture. Yaniv was demonstrating real world solution that combine the WCF power with the MEF charm :) as I promised you can find the presentation and the code sample that I was showing (and Yaniv was kind enough to let me publish his...
You can download the code here Wouldn’t it be nice to extend WCF just by inheriting the relevant interface (IServiceBehavior, IDispatchMessageInspector, ext…) and having it hooked without wasting your time on finding the right way of hooking it? Well this post is all about this topic. How does it work? I wrote 2 helper project MEFContracts and WcfPrimitivePlugins which responsible for that magic, and you will also need reference to MEF. For any of your WCF services or client proxy, you have to add...
This post is the 3rd of series on serialization in WCF. The post is taking the previous post concept one step ahead by wrapping the List<T> as serializable type Downloads available here Jump into the code see the theory in the previous post [ XmlRoot (Namespace = "htp://..." )] public class GenListCustom < T >: List < T >, IXmlSerializable { private static readonly string ITEM_ELEMENT_NAME= typeof (T).Name; XmlSchema IXmlSerializable . GetSchema () { throw new NotImplementedException...
This post is the second of series on serialization in WCF (previous post ). The topic of this post is dealing with writing data contract that inherit from type that does not decorated with the DataContract attribute (in our case List<T>). Downloads available here Why shouldn’t it work? consider the following type declaration: [ DataContract ] public class ListCustom : List < CompositeType > {…} The above code will not pass the data contract serialization because List<T> does not...
This post is the first of a series. Each post of this series will take the concept one step ahead. Code sample download available here What in this post? this post will discuss the technique of writing reusable type that can be serialize both by Data Contract serialization and Xml serialization and be later deserialize by the other. Why should we care about it? This technique is the base line for following posts in this series which talk about serializing inherits generics list. Some .NET technologies...