[Mono-dev] Use DCS OperationBehavior to create serializers in WCF

Atsushi Eno atsushieno at veritas-vos-liberabit.com
Sun Mar 13 23:20:51 EDT 2011


Hi Peter,

Thanks again for the patch. I fixed a bit for moonlight build (you can also
assure that by running "configure --with-moonlight=yes" on topdir and
"make PROFILE=moonlight_raw" at mcs/class/System.ServiceModel) and
pushed it into git master and 2-10 branch.

Atsushi Eno

(2011/03/11 20:49), Peter Gerbrandt wrote:
> Hello,
>
>   if I want to use a custom DataContractResolver I need to customize the creation of DataContractSerializer.
> This is done by applying a DataContractSerializerOperationBehavior.
> Currently, the OperationBehaviors are not used for creating the actual serializer.
> I think the right place to do this would be in BaseMessagesFormatter.GetSerializer().
>
> I've tested the attached patch on client and server side.
>
> Peter
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list