Bug 14613 - A custom DataContractSerializerOperationBehavior will be ignored
Summary: A custom DataContractSerializerOperationBehavior will be ignored
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: WCF assemblies (show other bugs)
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-09-10 13:00 UTC by Jon Goldberger [MSFT]
Modified: 2013-09-23 17:13 UTC (History)
4 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Test Project (468.77 KB, application/zip)
2013-09-10 13:00 UTC, Jon Goldberger [MSFT]
Details

Description Jon Goldberger [MSFT] 2013-09-10 13:00:27 UTC
Created attachment 4829 [details]
Test Project

Using Xamarin.Android 4.8.

I'd like to swap out the default DataContractSerializationOperationBehavior with a custom class which overrides the CreateSerializer virtual methods to create a custom serializer. Swapping out the behavior before the proxy is opened works fine, but my CreateSerializer methods are never called and the standard DataContractSerializer is always used. Is there a way around this?

I want a custom serializer to work around this problem. http://forums.xamarin.com/discussion/7609/datacontractserializer-does-not-us (Filed as bug 14611)
Comment 2 Jonathan Pryor 2013-09-23 17:13:11 UTC
Most of the time, WCF-related bugs are in the WCF layer, and not Android specific.

Please simplify the testcase to remove any Android dependencies so that WCF devs can more easily fix the bug.

Note You need to log in before you can comment on or make changes to this bug.