ソースを参照

2007-10-05 Atsushi Enomoto <[email protected]>

	* HttpWebClientProtocol.cs : implemented EnableDecompression.

	* WebService.cs : [ComVisible].

	* DiscoveryClientProtocol.cs : [ComVisible]

	* ServiceDescriptionCollection.cs : added missing members.


svn path=/trunk/mcs/; revision=86951
Atsushi Eno 18 年 前
コミット
9192e5f7ef

+ 4 - 0
mcs/class/System.Web.Services/System.Web.Services.Description/ChangeLog

@@ -1,3 +1,7 @@
+2007-10-05  Atsushi Enomoto  <[email protected]>
+
+	* ServiceDescriptionCollection.cs : added missing members.
+
 2007-08-31  Gert Driesen  <[email protected]>
 
 	* ServiceDescription.cs: Do not require write access to file.

+ 17 - 0
mcs/class/System.Web.Services/System.Web.Services.Description/ServiceDescriptionCollection.cs

@@ -148,6 +148,7 @@ namespace System.Web.Services.Description {
 		public void Insert (int index, ServiceDescription serviceDescription)
 		{
 			List.Insert (index, serviceDescription);
+			OnInsertComplete (index, serviceDescription);
 		}
 	
 		public void Remove (ServiceDescription serviceDescription)
@@ -155,6 +156,22 @@ namespace System.Web.Services.Description {
 			List.Remove (serviceDescription);
 		}
 
+#if NET_2_0
+		[MonoTODO]
+		protected override
+#endif
+		void OnInsertComplete (int index, object item)
+		{
+			base.OnInsertComplete (index, item);
+		}
+
+#if NET_2_0
+		[MonoTODO]
+		protected override void SetParent (object value, object parent)
+		{
+		}
+#endif
+
 		#endregion // Methods
 	}
 }

+ 4 - 0
mcs/class/System.Web.Services/System.Web.Services.Discovery/ChangeLog

@@ -1,3 +1,7 @@
+2007-10-05  Atsushi Enomotot  <[email protected]>
+
+	* DiscoveryClientProtocol.cs : [ComVisible]
+
 2007-08-31  Gert Driesen  <[email protected]>
 
 	* DiscoveryRequestHandler.cs: Do not require write access to file.

+ 3 - 0
mcs/class/System.Web.Services/System.Web.Services.Discovery/DiscoveryClientProtocol.cs

@@ -229,6 +229,9 @@ namespace System.Web.Services.Discovery {
 			}
 		}
 
+#if NET_2_0
+		[System.Runtime.InteropServices.ComVisible (false)]
+#endif
 		[Obsolete ("This method will be removed from a future version. The method call is no longer required for resource discovery", false)]
 		public void LoadExternals ()
 		{

+ 4 - 0
mcs/class/System.Web.Services/System.Web.Services.Protocols/ChangeLog

@@ -1,3 +1,7 @@
+2007-10-05  Atsushi Enomoto  <[email protected]>
+
+	* HttpWebClientProtocol.cs : implemented EnableDecompression.
+
 2007-10-04  Atsushi Enomoto  <[email protected]>
 
 	* TypeStubManager.cs: reverted r82932 again. This #if ONLY_1_1 causes

+ 13 - 1
mcs/class/System.Web.Services/System.Web.Services.Protocols/HttpWebClientProtocol.cs

@@ -44,7 +44,7 @@ namespace System.Web.Services.Protocols {
 
 		#region Fields
 
-		bool allowAutoRedirect;
+		bool allowAutoRedirect, enableDecompression;
 		X509CertificateCollection clientCertificates;
 		CookieContainer cookieContainer;
 		IWebProxy proxy;
@@ -95,6 +95,14 @@ namespace System.Web.Services.Protocols {
 			set { cookieContainer = value; }
 		}
 
+#if NET_2_0
+		[DefaultValue (false)]
+		public bool EnableDecompression {
+			get { return enableDecompression; }
+			set { enableDecompression = value; }
+		}
+#endif
+
 		[Browsable (false)]
 		[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
 		public IWebProxy Proxy {
@@ -154,6 +162,10 @@ namespace System.Web.Services.Protocols {
 			HttpWebRequest request = req as HttpWebRequest;
 			if (request == null)
 				return req;
+#if NET_2_0
+			if (enableDecompression)
+				request.AutomaticDecompression = DecompressionMethods.GZip;
+#endif
 
 			request.AllowAutoRedirect = allowAutoRedirect;
 			if (clientCertificates != null)

+ 4 - 0
mcs/class/System.Web.Services/System.Web.Services/ChangeLog

@@ -1,3 +1,7 @@
+2006-12-05  Atsushi Enomoto  <[email protected]>
+
+	* WebService.cs : [ComVisible].
+
 2006-12-04  Atsushi Enomoto  <[email protected]>
 
 	* WebService.cs : implemented SoapVersion as documented in MSDN.

+ 1 - 0
mcs/class/System.Web.Services/System.Web.Services/WebService.cs

@@ -102,6 +102,7 @@ namespace System.Web.Services {
 #if NET_2_0
 		[Browsable (false)]
 		[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+		[System.Runtime.InteropServices.ComVisible (false)]
 		public System.Web.Services.Protocols.SoapProtocolVersion SoapVersion {
 			get { return _soapVersion; }
 		}