Incorrect warning message on thread pool startup in full AOT:ed Windows build.
[mono.git] / mcs / class / System / System.Net / WebException.cs
index a56fece9dc949387602aee94b97bed80faea7697..e6b3c16144400d2d832d839ec8c05a7c8345e650 100644 (file)
@@ -4,35 +4,34 @@
 // Author:\r
 //   Lawrence Pit (loz@cable.a2000.nl)\r
 //\r
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
 \r
 using System.Runtime.Serialization;\r
 \r
 namespace System.Net \r
 {\r
        [Serializable]\r
-       public class WebException : InvalidOperationException, ISerializable\r
-       {\r
+       public class WebException : InvalidOperationException, ISerializable {\r
                private WebResponse response;\r
                private WebExceptionStatus status = WebExceptionStatus.UnknownError;\r
 \r
@@ -46,9 +45,8 @@ namespace System.Net
                {\r
                }\r
 \r
-               protected WebException (SerializationInfo info,\r
-                                       StreamingContext context)\r
-                       : base (info, context)\r
+               protected WebException (SerializationInfo serializationInfo, StreamingContext streamingContext)\r
+                       : base (serializationInfo, streamingContext)\r
                {\r
                }\r
 \r
@@ -62,12 +60,18 @@ namespace System.Net
                {\r
                        this.status = status;\r
                }\r
+               \r
+               internal WebException (string message, Exception innerException, WebExceptionStatus status)\r
+                       : base (message, innerException)\r
+               {\r
+                       this.status = status;\r
+               }\r
 \r
                public WebException(string message, \r
                                    Exception innerException,\r
                                    WebExceptionStatus status, \r
                                    WebResponse response)\r
-                       : base (message, innerException)                                    \r
+                       : base (message, innerException)\r
                {\r
                        this.status = status;\r
                        this.response = response;\r
@@ -84,11 +88,15 @@ namespace System.Net
                }\r
                \r
                // Methods\r
-               \r
                void ISerializable.GetObjectData (SerializationInfo info, StreamingContext context)\r
                {\r
                        base.GetObjectData (info, context);\r
                }\r
+\r
+               public override void GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext)\r
+               {\r
+                       base.GetObjectData (serializationInfo,\r
+                                           streamingContext);\r
+               }\r
        }\r
 }\r
-       \r