Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorcampersau <buchholz.bastian@googlemail.com>2019-12-02 07:20:15 +0300
committerKenneth Pouncey <kjpou@pt.lu>2019-12-02 07:20:15 +0300
commitb0f0b14023c17bdd7e8a1bfe4cc044590b5bb491 (patch)
tree43cc7d2aa96ccdc6d38e80dc28826b5a39197b60 /mcs/class
parentd33ce1c3ec6c477af5d28f3c1a3b5c29b2374cb0 (diff)
[wasm][bcl][http] Fix descriptive message for the `PlatformNotSupportedException` (#17919)
* Fix descriptive message for the `PlatformNotSupportedException` * Add more descriptive message to the `Properties` `PlatformNotSupportedException`
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs
index 4091de7d2a6..20196dbdf61 100644
--- a/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs
+++ b/mcs/class/System.Net.Http/System.Net.Http/HttpClientHandler.wasm.cs
@@ -78,8 +78,8 @@ namespace System.Net.Http
}
public bool UseProxy {
- get => throw new PlatformNotSupportedException ("Property AutomaticDecompression is not supported.");
- set => throw new PlatformNotSupportedException ("Property AutomaticDecompression is not supported.");
+ get => throw new PlatformNotSupportedException ("Property UseProxy is not supported.");
+ set => throw new PlatformNotSupportedException ("Property UseProxy is not supported.");
}
public IWebProxy Proxy {
@@ -132,7 +132,7 @@ namespace System.Net.Http
set => throw new PlatformNotSupportedException ("Property MaxRequestContentBufferSize is not supported.");
}
- public IDictionary<string, object> Properties => throw new PlatformNotSupportedException ();
+ public IDictionary<string, object> Properties => throw new PlatformNotSupportedException ("Property Properties is not supported.");
public static Func<HttpRequestMessage, X509Certificate2, X509Chain, SslPolicyErrors, bool> DangerousAcceptAnyServerCertificateValidator { get; } = delegate { return true; };