+2009-08-17 Sebastien Pouliot <sebastien@ximian.com>
+
+ * CookieCollection.cs: Seal class for NET_2_1 (SL3)
+ * CookieContainer.cs: Seal class for NET_2_1 (SL3)
+ * NetworkCredential.cs: Use in NET_2_1 (SL3) but without implementing
+ ICredentialsByHost
+
2009-08-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpWebRequest.cs:
namespace System.Net
{
[Serializable]
- public class CookieCollection : ICollection, IEnumerable
- {
+#if NET_2_1
+ public sealed class CookieCollection : ICollection, IEnumerable {
+#else
+ public class CookieCollection : ICollection, IEnumerable {
+#endif
class CookieCollectionPathComparer : IComparer
{
int IComparer.Compare (object p1, object p2)
{
[Serializable]
[MonoTODO ("Need to remove older/unused cookies if it reaches the maximum capacity")]
- public class CookieContainer
- {
+#if NET_2_1
+ public sealed class CookieContainer {
+#else
+ public class CookieContainer {
+#endif
public const int DefaultCookieLengthLimit = 4096;
public const int DefaultCookieLimit = 300;
public const int DefaultPerDomainCookieLimit = 20;
namespace System.Net
{
public class NetworkCredential : ICredentials
-#if NET_2_0
+#if NET_2_0 && !NET_2_1
, ICredentialsByHost
#endif
{
return this;
}
-#if NET_2_0
+#if NET_2_0 && !NET_2_1
public NetworkCredential GetCredential (string host, int port, string authenticationType)
{
return this;