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

Peter Gerbrandt pg at viadux.de
Fri Mar 11 06:49:59 EST 2011


 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: usedcsoperationbehavior.patch
Type: application/octet-stream
Size: 1590 bytes
Desc: usedcsoperationbehavior.patch
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110311/03b4098c/attachment.obj 

More information about the Mono-devel-list mailing list