Преглед изворни кода

2009-07-21 Atsushi Enomoto <[email protected]>

	* BinaryMessageEncoder.cs : for non-session reader and writer, do not
	  use dictionary.


svn path=/trunk/mcs/; revision=138297
Atsushi Eno пре 16 година
родитељ
комит
6160165eb4

+ 2 - 2
mcs/class/System.ServiceModel/System.ServiceModel.Channels/BinaryMessageEncoder.cs

@@ -246,7 +246,7 @@ namespace System.ServiceModel.Channels
 				throw new ProtocolException ("Only content type 'application/soap+msbin1' is allowed.");
 
 			return Message.CreateMessage (
-				XmlDictionaryReader.CreateBinaryReader (stream, soap_dictionary, owner != null ? owner.Owner.ReaderQuotas : new XmlDictionaryReaderQuotas (), session ? CurrentReaderSession : null),
+				XmlDictionaryReader.CreateBinaryReader (stream, session ? soap_dictionary : null, owner != null ? owner.Owner.ReaderQuotas : new XmlDictionaryReaderQuotas (), session ? CurrentReaderSession : null),
 				maxSizeOfHeaders, MessageVersion);
 		}
 
@@ -254,7 +254,7 @@ namespace System.ServiceModel.Channels
 		{
 			VerifyMessageVersion (message);
 
-			using (var xw = XmlDictionaryWriter.CreateBinaryWriter (stream, soap_dictionary, CurrentWriterSession))
+			using (var xw = XmlDictionaryWriter.CreateBinaryWriter (stream, session ? soap_dictionary : null, session ? CurrentWriterSession : null))
 				message.WriteMessage (xw);
 		}
 

+ 5 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog

@@ -1,3 +1,8 @@
+2009-07-21  Atsushi Enomoto  <[email protected]>
+
+	* BinaryMessageEncoder.cs : for non-session reader and writer, do not
+	  use dictionary.
+
 2009-07-17  Atsushi Enomoto  <[email protected]>
 
 	* PeerDuplexChannel.cs: add the registered node itself to peer list.