-
Notifications
You must be signed in to change notification settings - Fork 565
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
Fix XmlSerializer to work on NetTcp/Duplex MEP #344
Conversation
Hi @khdang, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
dispatch.SerializeReply = _reflector.ReplyRequiresSerialization; | ||
} | ||
|
||
if (_reflector.Attribute.SupportFaults && !dispatch.IsFaultFormatterSetExplicit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ported from Desktop code. I've removed the following because wrapper is not used at all:
else
{
var wrapper = dispatch.FaultFormatter as IDispatchFaultFormatterWrapper;
if (wrapper != null)
{
wrapper.InnerFaultFormatter = (IDispatchFaultFormatter)CreateFaultFormatter(dispatch.FaultContractInfos);
}
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @khdang -- just a question. What does it mean when you say "the wrapper is not used at all". Does that mean we are not currently using that code path or that it is impossible to execute that code path in NET Core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean that code path doesn't seem to have any effect since wrapper is not used anywhere else after it is initialized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like IDispatchFaultFormatterWrapper isn't even defined in our code base. It looks like it was invented for the WebFaultFormatter in Desktop, so I think you're right it is not needed. Thanks. LGTM.
LGTM subject to one question in the comments above |
LGTM. However, prior to merge, can you fix the commit message and author? Your commit doesn't seem to be resolving to your GitHub account. |
30546cb
to
5593c71
Compare
5593c71
to
437a48f
Compare
Fix XmlSerializer to work on NetTcp/Duplex MEP
Fix #292