[Mono-dev] [PATCH] Implement System.Net.WebClient.set_CachePolicy.
Vincent Povirk
madewokherd at gmail.com
Tue Jul 6 15:50:37 EDT 2010
The value is currently ignored, but that is a problem for WebRequest.
For wine bug 23458.
-------------- next part --------------
diff --git a/class/System/System.Net/WebClient.cs b/class/System/System.Net/WebClient.cs
index 8ada916..de62c50 100644
--- a/class/System/System.Net/WebClient.cs
+++ b/class/System/System.Net/WebClient.cs
@@ -139,6 +139,8 @@ namespace System.Net
return new NotImplementedException ();
}
+ private RequestCachePolicy cachePolicy;
+
[MonoTODO]
public RequestCachePolicy CachePolicy
{
@@ -146,7 +148,7 @@ namespace System.Net
throw GetMustImplement ();
}
set {
- throw GetMustImplement ();
+ cachePolicy = value;
}
}
@@ -942,6 +944,8 @@ namespace System.Net
#if NET_2_0
if (Proxy != null)
request.Proxy = Proxy;
+ if (cachePolicy != null)
+ request.CachePolicy = cachePolicy;
#endif
request.Credentials = credentials;
More information about the Mono-devel-list
mailing list