-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Design] Use DI for the serializer provider and all the serializers #301
Comments
I'm not very familiar with WebApi configuration flow, so maybe this question is stupid. |
I think your concerns are reasonable. |
You're right, serializer/deserializer have access to RequestMessage, with ApiFactory in Properties. |
"Pinging" this issue in case it went on the back burner... I am currently trying to implement a deserializer for an entity with binary property (so when POSTing a new instance one could pass the JSON for entity definition and binary content for one of the properties in "multipart/form-data"). So far I haven't been successful in making it work, due to a combination of me being a newbie and the above mentioned
|
@ivanko2000 thanks for your patience, Lewis is busy on other critical items, I discussed with him and take this from him today, it is my TODO items in the next several days. And plan to be part of 0.5.0 release. |
@lewischeng-ms @rayao I am investigating this item and thinking about the design we may have, Update per discussion with Lewis. Facts,
So here is what I am thinking,
Here we need to set Api or context into request but not Api factory as it will cause a new instance.
Comments? Suggestions? |
The issue is fixed and merged, doc is added, close the issue. |
So that users can easily replace them with their customized ones. Now it is so hard to override the serializer behavior.
The text was updated successfully, but these errors were encountered: