Stub implementation of EndGetRequestStream overload in HttpWebRequest.cs
authorOttoG <otto.giesenfeld@kw-digital.com>
Wed, 11 Dec 2013 11:35:57 +0000 (12:35 +0100)
committerOttoG <otto.giesenfeld@kw-digital.com>
Wed, 11 Dec 2013 11:35:57 +0000 (12:35 +0100)
I am not sure if a "do-nothing" implementation like this is acceptable in the Mono code base, but it does solve the problem described in https://bugzilla.xamarin.com/show_bug.cgi?id=12875 (successfully executing simple requests using the Google API .NET client library).

mcs/class/System/System.Net/HttpWebRequest.cs

index 2d0c8853e74ba652a775cd43cf63ac4d26636034..939fe2d52c06962f08a76fb0d124c75cfde40c90 100644 (file)
@@ -950,6 +950,14 @@ namespace System.Net
 
                        return result.Response;
                }
+               
+#if NET_4_0
+               public Stream EndGetRequestStream (IAsyncResult asyncResult, out System.Net.TransportContext transportContext)
+               {
+                       transportContext = null;
+                       return EndGetRequestStream (asyncResult);
+               }
+#endif
 
                public override WebResponse GetResponse()
                {