Переглянути джерело

2009-12-01 Atsushi Enomoto <[email protected]>

	* SilverlightClientConfigLoader.cs : do not enter infinite loop at
	  empty <binding> element.


svn path=/trunk/mcs/; revision=147178
Atsushi Eno 16 роки тому
батько
коміт
9777bcd3df

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

@@ -1,3 +1,8 @@
+2009-12-01  Atsushi Enomoto  <[email protected]>
+
+	* SilverlightClientConfigLoader.cs : do not enter infinite loop at
+	  empty <binding> element.
+
 2009-11-25  Atsushi Enomoto  <[email protected]>
 
 	* EndpointAddress10.cs : added it to the 2.1 build for SL3 API.

+ 4 - 2
mcs/class/System.ServiceModel/System.ServiceModel/SilverlightClientConfigLoader.cs

@@ -41,7 +41,7 @@ namespace System.ServiceModel
 	// Since System.Configuration is not supported in SL, this config
 	// loader has to be created without depending on it.
 
-	internal class SilverlightClientConfigLoader
+	public class SilverlightClientConfigLoader
 	{
 		public SilverlightClientConfiguration Load (XmlReader reader)
 		{
@@ -202,6 +202,8 @@ namespace System.ServiceModel
 				}
 				reader.ReadEndElement ();
 			}
+			else
+				reader.Read ();
 			
 			return b;
 		}
@@ -266,7 +268,7 @@ namespace System.ServiceModel
 			}
 		}
 
-		internal class ServiceEndpointConfiguration
+		public class ServiceEndpointConfiguration
 		{
 			public string Name { get; set; }
 			public EndpointAddress Address { get; set; }