Skip to content

Commit

Permalink
Add comments for recently made public classes do not match contract
Browse files Browse the repository at this point in the history
* Add comments to explain why the classes are made public, but not on contract
  • Loading branch information
hongdai committed May 20, 2016
1 parent 0303d71 commit a60182b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ private void WriteTo11(XmlDictionaryWriter writer)
}
}

/*
This class is not exposed on the contract as we only need it public for reflection purpose on .Net Native.
*/
public class XmlObjectSerializerFault : MessageFault
{
private FaultCode _code;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

namespace System.ServiceModel.Dispatcher
{
/*
This class is not exposed on the contract as we only need it public for reflection purpose on .Net Native.
*/
public class FaultFormatter : IClientFaultFormatter, IDispatchFaultFormatter
{
private FaultContractInfo[] _faultContractInfos;
Expand Down Expand Up @@ -193,6 +196,9 @@ private static MessageFault CreateMessageFault(XmlObjectSerializer serializer, F
return (MessageFault)Activator.CreateInstance(operationFaultType, serializer, faultException);
}

/*
This class is not exposed on the contract as we only need it public for reflection purpose on .Net Native.
*/
public class OperationFault<T> : XmlObjectSerializerFault
{
public OperationFault(XmlObjectSerializer serializer, FaultException<T> faultException) :
Expand Down

0 comments on commit a60182b

Please sign in to comment.