How to use DataContractResolver in WF4

Locked How to use DataContractResolver in WF4

  • mercredi 16 mai 2012 10:10
     
     
    We are developing workflows in WF4 way. When we use some custom classes we have to add them to knowntypes collection in each send/receive activity to avoid serialization problems. Is there any way we can use DataContractResolver feature which is a new dotnet 4 to avoid adding knowntypes ? Or any alternate solution if any one can suggest ?? Thanks.

    Surender.NET

Toutes les réponses

  • jeudi 17 mai 2012 20:27
    Modérateur
     
     Réponse proposée

    Yes I think this is possible. You can basically load a new assembly at run time with the new types and then just need to have a way to get the updated type information into the service when using DataContractResolver: http://msdn.microsoft.com/en-us/library/dd807504.aspx.

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline