Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
//
// AssemblyInfo.cs
//
// Author:
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
//
// (C) 2003 Ximian, Inc. http://www.ximian.com
//
//
// 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.
//
using System;
using System.Reflection;
using System.Resources;
using System.Diagnostics;
using System.Security;
using System.Security.Permissions;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about the System.Net assembly
[assembly: AssemblyTitle ("System.Net.dll")]
[assembly: AssemblyDescription ("System.Net.dll")]
[assembly: AssemblyDefaultAlias ("System.Net.dll")]
[assembly: AssemblyCompany (Consts.MonoCompany)]
[assembly: AssemblyProduct (Consts.MonoProduct)]
[assembly: AssemblyCopyright (Consts.MonoCopyright)]
[assembly: AssemblyVersion (Consts.FxVersion)]
[assembly: SatelliteContractVersion (Consts.FxVersion)]
[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
[assembly: NeutralResourcesLanguage ("en-US")]
[assembly: CLSCompliant (true)]
[assembly: AssemblyDelaySign (true)]
#if NET_2_1
[assembly: AssemblyKeyFile ("../silverlight.pub")]
[assembly: InternalsVisibleTo ("System.Windows, PublicKey=00240000048000009400000006020000002400005253413100040000010001008D56C76F9E8649383049F383C44BE0EC204181822A6C31CF5EB7EF486944D032188EA1D3920763712CCB12D75FB77E9811149E6148E5D32FBAAB37611C1878DDC19E20EF135D0CB2CFF2BFEC3D115810C3D9069638FE4BE215DBF795861920E5AB6F7DB2E2CEEF136AC23D5DD2BF031700AEC232F6C6B1C785B4305C123B37AB")]
[assembly: InternalsVisibleTo ("System.Windows.Browser, PublicKey=00240000048000009400000006020000002400005253413100040000010001008D56C76F9E8649383049F383C44BE0EC204181822A6C31CF5EB7EF486944D032188EA1D3920763712CCB12D75FB77E9811149E6148E5D32FBAAB37611C1878DDC19E20EF135D0CB2CFF2BFEC3D115810C3D9069638FE4BE215DBF795861920E5AB6F7DB2E2CEEF136AC23D5DD2BF031700AEC232F6C6B1C785B4305C123B37AB")]
[assembly: InternalsVisibleTo ("System.Xml, PublicKey=00240000048000009400000006020000002400005253413100040000010001008D56C76F9E8649383049F383C44BE0EC204181822A6C31CF5EB7EF486944D032188EA1D3920763712CCB12D75FB77E9811149E6148E5D32FBAAB37611C1878DDC19E20EF135D0CB2CFF2BFEC3D115810C3D9069638FE4BE215DBF795861920E5AB6F7DB2E2CEEF136AC23D5DD2BF031700AEC232F6C6B1C785B4305C123B37AB")]
#elif NET_4_0
[assembly: AssemblyKeyFile ("../msfinal.pub")]
[assembly: AllowPartiallyTrustedCallers]
[assembly: SecurityCritical]
#else
[assembly: AssemblyKeyFile ("../ecma.pub")]
[assembly: AllowPartiallyTrustedCallers]
[assembly: SecurityCritical]
#endif
[assembly: ComVisible (false)]

View File

@@ -0,0 +1,17 @@
2009-05-09 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Open up the internals to System.Windows.Browser
(needed right now), System.Windows and System.Xml (needed for an
upcoming patch).
2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
* AssemblyInfo.cs: Adjust attributes for 2.1
2008-04-25 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added missing attributes
2008-03-13 Jb Evain <jbevain@novell.com>
* new files to build System.Net.dll for ML.

View File

@@ -0,0 +1,50 @@
//
// TypeForwarders.cs
//
// Author:
// Martin Baulig <martin.baulig@xamarin.com>
//
// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
//
// 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.
#if NET_4_0
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.Cookie))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.CookieCollection))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.CookieContainer))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.CookieException))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.HttpRequestHeader))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.HttpStatusCode))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.WebRequest))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.HttpWebRequest))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.WebResponse))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.HttpWebResponse))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.ICredentials))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.IWebRequestCreate))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.NetworkCredential))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.ProtocolViolationException))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.WebException))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.WebExceptionStatus))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.WebHeaderCollection))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.NetworkInformation.NetworkAddressChangedEventHandler))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.NetworkInformation.NetworkChange))]
[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.Net.NetworkInformation.NetworkInterface))]
#endif

View File

@@ -0,0 +1,131 @@
2010-04-21 Sebastien Pouliot <sebastien@ximian.com>
* moonlight_raw_System.Net.dll.sources: Add System.Net.Sockets/
SocketClientAccessPolicyProtocol.cs to the build
2010-04-05 Sebastien Pouliot <sebastien@ximian.com>
* moonlight_raw_System.Net.dll.sources: Move InternalWebRequest
StreamWrapper.cs back to System.Windows.dll
2010-03-16 Jb Evain <jbevain@novell.com>
* net_2_1_*.dll.sources: rename to moonlight_*.dll.sources.
2010-03-10 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Net.dll.sources: Add types from (new internal)
System.Net.Policy (moved from System.Windows.Browser.dll)
* Makefile: Add reference to System.Xml.dll to parse policies
2010-01-25 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Add UdpAnySourceMulticastClient and
UdpSingleSourceMulticastClient stubs (with some validations)
for SL4 (required to compile tests)
2010-01-11 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Add InternalWebRequestStreamWrapper.cs
* Makefile: Add reference to System.Core (for Action<T>)
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Remove (almost) everything. This
assembly in 3.5+ does not share anything with what SL2/3
provide (the later being a part of System.dll)
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Net.dll.sources: Remove HttpStatusCode_2_1.cs
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Net.dll.sources: Adjust location for
DnsEndPoint
2009-09-29 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Net.dll.sources: Remove Timer_2_1.cs and
related classes from System.dll - they are not required anymore
since Gonzalo's changes on Socket.Close(int)
2009-09-27 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Net.dll.sources: Add Timer_2_1.cs and
related classes from System.dll
2009-09-24 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Net.dll.sources: Substitute System.dll Dns
implementation for a ML specific version.
2009-08-17 Sebastien Pouliot <sebastien@ximian.com>
* net_2_1_raw_System.Net.dll.sources: Add some existing System.dll
files required for SL3 and some new files.
2009-07-20 Jb Evain <jbevain@novell.com>
* Makefile: filter the valid profile on the framework version,
to make it easier to have custom variants.
2009-07-14 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Remove extra files not needed to
compile System.Net (and cut the tuning time too)
* DummySystemNet.cs: Remove. Not needed anymore.
2009-04-22 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Remove the common Const, Locale and
MonoTODOAttribute since we can now get them from mscorlib.dll.
Remove all System/System.Net.NetworkInformation/* types since
Socket does not depend on them anymore.
* DummySystemNet.cs: Add a dummy System.Net.NetworkInformation
namespace to please compilers.
2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Remove some unneeded files for the
build. Add the SL2 specific enums, instead of using the existing
ones from System.dll. Include Socket_2_1.cs (from System) and use
the AssemblyInfo.cs for this assembly
2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Remove classes that are not in the
final SL2 release
2009-03-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
* System.Net.dll.sources: Added WriteStreamClosedEventArgs_2_1.cs
and WriteStreamClosedEventHandler_2_1.cs
2009-02-24 Alan McGovern <amcgovern@novell.com>
* System.Net/WebClient_2_1.cs: If we're getting text, ensure we
strip out the byte order mark if it exists.
2009-01-21 Jb Evain <jbevain@novell.com>
* System.Net/WebClient_2_1.cs: use the length of the stream
instead of the ContentLength that is different for gzipped stream.
2008-09-16 Sebastien Pouliot <sebastien@ximian.com>
* System.Net.dll.sources: Add new security-socket related files.
2008-07-31 Jb Evain <jbevain@novell.com>
* System.Net.dll.sources: fine tune.
2008-07-14 Marek Habersack <mhabersack@novell.com>
* System.Net.dll.sources: added
System.Net.NetworkInformation/LinuxNetworkInterfaceMarshal.cs
2008-04-13 Jb Evain <jbevain@novell.com>
* System.Net: new assembly in SL 2b1.
Merged from the Moonlight 2 branch.

View File

@@ -0,0 +1,24 @@
thisdir = class/System.Net
SUBDIRS =
include ../../build/rules.make
LIBRARY = System.Net.dll
LIB_MCS_FLAGS = -unsafe -r:System.dll -r:System.Core.dll -r:System.Xml.dll
ifneq (2.1, $(FRAMEWORK_VERSION))
LIB_MCS_FLAGS += -d:NET_3_5 -nowarn:1720
endif
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
EXTRA_DISTFILES =
VALID_PROFILE := $(filter 2 4, $(FRAMEWORK_VERSION_MAJOR))
ifndef VALID_PROFILE
LIBRARY_NAME = dummy-System.Net.dll
NO_INSTALL = yes
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
endif
include ../../build/library.make

View File

@@ -0,0 +1,5 @@
Assembly/AssemblyInfo.cs
Assembly/TypeForwarders.cs
../../build/common/Consts.cs
../../build/common/MonoTODOAttribute.cs
System.Net/IPEndPointCollection.cs

View File

@@ -0,0 +1,381 @@
2010-07-14 Sebastien Pouliot <sebastien@ximian.com>
* WebHeaderCollection_2_1.cs: Fix IEnumerable.GetEnumerator
2010-05-14 Sebastien Pouliot <sebastien@ximian.com>
* WebHeaderCollection_2_1.cs: Hide the internal Dictionary and
provide methods to use it properly.
* HttpWebRequest_2_1.cs: Use internal Clear method
2010-04-21 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebResponse_2_1.cs: Method, StatusCode and StatusDescription
property getters are now virtual (instead of abstract) and throw
NIE in SL4 (final) API.
* WebRequest_2_1.cs: Added ContentLength (SL4) property to throw
NIE. Implement (SL4) CreateHttp methods. Rework stack registration
logic.
* WebResponse_2_1.cs: default Headers getter throws NIE
2010-04-05 Sebastien Pouliot <sebastien@ximian.com>
* InternalWebResponseStreamWrapper.cs: Move back to
System.Windows.dll
2010-03-19 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: AllowWriteStreamBuffering getter/setter
throws NIE by default (must be overridden). Revert Accept and
ContentType behavior to SL2 (identical to SL4 but different from
SL3).
* WebClient_2_1.cs: Initialize UseDefaultCredentials to true. Set
the properties when creating a new WebRequest
2010-03-18 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Add SL4 RC AllowWriteStreamBuffering and
SupportsCookieContainer properties.
* WebClient_2_1.cs: Add SL4 RC AllowWriteStreamBuffering and
UseDefaultCredentials properties.
* WebHeaderCollection_2_1.cs: Authorization and Proxy-Authorization
are valid (i.e. usable) headers in SL4 (in both stacks)
2010-03-16 Rolf Bjarne Kvinge <RKvinge@novell.com>
* WebRequest_2_1.cs: Added UseDefaultCredentials property.
2010-03-12 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: Directly set 'progress' delegate field
* WebRequest_2_1.cs: Avoid using reflection (since it was not
really needed anyway)
2010-03-03 Andreia Gaita <avidigal@novell.com>
* InternalWebRequestStreamWrapper.cs: don't add a newline to the
request data, whatever uses the data should be the one adding
newlines if they need it (i.e., moon's ff bridge needs it, the
curl bridge doesn't)
2010-02-25 Rolf Bjarne Kvinge <RKvinge@novell.com>
* WebClient_2_1.cs: Emit DownloadProgressChanged events on the correct
thread too.
2010-02-23 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Accept and ContentType properties do not
behave like Silverlight 2.0 (not related to browser/client stacks)
* WebHeaderCollection_2_1.cs: Range is now accepted in SL3 (not
related to browser/client stacks)
* WebRequest_2_1.cs: Fix registration to work on domains (new)
and scheme (more correctly wrt new unit tests).
2010-02-16 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: Keep a copy of 'userToken' since we need to
supply it when calling OnDownloadProgressChanged
* WebRequest_2_1.cs (SetupProgressDelegate): Simplify signature
2010-01-29 Rolf Bjarne Kvinge <RKvinge@novell.com>
* WebClient_2_1.cs: Ensure the WriteStreamClosed event is emitted on
the correct thread (by using the stored SynchronizationContext).
* InternalWebRequestStreamWrapper.cs: Add a WebClientData field which
is passed to the WriteStreamClosedCallback.
2010-01-28 Rolf Bjarne Kvinge <RKvinge@novell.com>
* WebClient_2_1.cs: The async events must be invoked on a threadpool
thread if the async method wasn't executed on the main thread, so save
the synchronization context when the async method is called, and post
the event to that synchronization context when done. This is also
required when the async methods are executed on the main thread, since
HttpWebRequest callbacks are now always executed on a threadpool thread.
2010-01-25 Sebastien Pouliot <sebastien@ximian.com>
* UdpAnySourceMulticastClient.cs: New. Stub for SL4
* UdpSingleSourceMulticastClient.cs: New. Stub for SL4
2010-01-13 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Throw for CookieContainer. It is
implemented only in the client http stack (and for a limited
time in the browser stack too ;-)
* InternalWebRequestStreamWrapper.cs: Keep the MemoryStream data
available after closing/disposing (by user) since our own code
will need it later (e.g. when posting like DRT287)
* WebHeaderCollection_2_1.cs: Provide an argument to
ArgumentException. Found by Gendarme's ArgumentException
InstantiateArgumentExceptionCorrectlyRule
2010-01-12 Sebastien Pouliot <sebastien@ximian.com>
* WebRequest_2_1.cs: Rework registration wrt the two, browser
and client, stacks offered in SL3. Only global works now.
2010-01-11 Sebastien Pouliot <sebastien@ximian.com>
* InternalWebRequestStreamWrapper.cs: New. Moved (and adapted)
from Moonlight System.Windows.Browser assembly.
* InternalWebResponseStreamWrapper.cs: New. Moved (and adapted)
from Moonlight System.Windows.Browser assembly.
* WebClient_2_1.cs: Remove custom delegate declaration (Gendarme's
AvoidDeclaringCustomDelegatesRule). Remove locking over a variable
(Gendarme's ReviewLockUsedOnlyForOperationsOnVariablesRule).
Avoid potential race with event handlers (Gendarme's
ProtectCallsToEventDelegatesRule). Implement OnWriteStreamClosed
* WebRequest_2_1.cs: Signature change from delegate to
Action<long,long,object>. Found using Gendarme's
AvoidDeclaringCustomDelegatesRule
2009-12-12 Rolf Bjarne Kvinge <RKvinge@novell.com>
* WebClient_2_1.cs: When creating the request we need to copy over
any headers the user set on us. We also need to wrap
InvalidOperationExceptions in WebExceptions.
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* HttpStatusCode_2_1.cs: Remove. SL3 provides all status code
since they are used for the client stack
* WebClient_2_1.cs: Add Credentials property and change
ResponseHeaders property to public
* WebRequest_2_1.cs: Add Credentials property
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* DnsEndPoint_2_1.cs: Moved to System.dll since it's also part
of .net 4.0
2009-12-04 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Add CookieCollection, need to be
implemented in the client stack
* HttpWebResponse_2_1.cs: CookieContainer is virtual. Add FIXME
to move (a real) implementation into the client stack
* WebRequest_2_1.cs: Add Create(string) overload (SL3)
2009-09-24 Sebastien Pouliot <sebastien@ximian.com>
* Dns_2_1.cs: New. Smaller version of Dns.cs that offers just
enough for DnsEndPoint support
2009-09-24 Sebastien Pouliot <sebastien@ximian.com>
* DnsEndPoint_2_1.cs: Remove (now) unneeded method
2009-07-16 Sebastien Pouliot <sebastien@ximian.com>
* WebHeaderCollection_2_1.cs: Seal type.
2009-06-17 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: Fix BaseAddress and remove dual base[Address|
String] variables.
2009-06-05 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: Make sure *CompletedEventArgs gets called
even in case an exception occurs before the BeginGetResponse
call. Adjust API for OpenReadCompletedEventArgs.
2009-06-04 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: Remove the creation of threads and use the
async methods provided by WebRequest (and its friends). Use an
internal object to lock on (not this). Remove comments from the
original (mono) WebClient since the code has diverged so much.
Fix DRT#326 (hopefully others too or at least more than it breaks)
2009-06-01 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Avoid possible NRE while settings a
complete collection.
* WebResponse_2_1.cs: Use StringComparer.OrdinalIgnoreCase on
the prefix Dictionary
2009-05-26 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: Add internal WebHeaderCollection. Change
signature for OpenPolicyReadAsync to take an addtional object
* WebResponse_2_1.cs: Add internal WebHeaderCollection
2009-05-22 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: Add an internal OpenPolicyReadAsync. Check
result in ProcessResponse and throw if not Ok (200).
* WebRequest_2_1.cs: Add an internal overload to BeginGetResponse
from where we can handle downloading the policy.
2009-05-14 Sebastien Pouliot <sebastien@ximian.com>
* DnsEndPoint_2_1.cs: Add method to return an IPEndPoint from a
DnsEndPoint that match the requested AddressFamily
2009-05-12 Sebastien Pouliot <sebastien@ximian.com>
* WebHeaderCollection_2_1.cs: Headers are case insensitive but we
must keep them in their original form since AllKeys property will
report them that way and user code (like DRT#288) can depends on
this behavior.
2009-05-11 Sebastien Pouliot <sebastien@ximian.com>
* WebHeaderCollection_2_1.cs: Headers are removed only in special
cases and never when the "this" property is used. Call ToLower
in SetHeader too in order to avoid typos.
2009-05-11 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Fix Accept and ContentType properties
to use, with special care, the Headers property
* WebHeaderCollection_2_1.cs (SetHeader): Add or remove header.
2009-05-10 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Move Headers property logic here (as
shown by adding more unit tests)
* WebClient_2_1.cs: Add comment that Headers are not validated
there, but later.
* WebHeaderCollection_2_1.cs: Add a SetHeader method that can
work around the normal validations that the "this" property
needs to do.
2009-05-09 Sebastien Pouliot <sebastien@ximian.com>
* WebHeaderCollection_2_1.cs: When associated with a WebRequest
the header collection items needs to be validated since not all
headers will be valid. Part of fix for DRT#532
2009-04-16 Sebastien Pouliot <sebastien@ximian.com>
* HttpWebRequest_2_1.cs: Rework the throwing of NIE so gui-compare
does not report them (since they are the "right" behavior)
* WebClient_2_1.cs: Fix BaseAddress property to return the URI to
the XAP file. Implement protected GetWebRequest which will make an
absolute URI from a relative one (using BaseAddress). That remove
the need of the previous hack.
* WebRequest_2_1.cs: Remove previous hack
2009-04-11 Sebastien Pouliot <sebastien@ximian.com>
* WebClient_2_1.cs: WebClient allows relative URI...
* WebRequest_2_1.cs: ...while WebRequest does not by default.
Also uncomment a few checks for new test cases
2009-04-11 Sebastien Pouliot <sebastien@ximian.com>
* DnsEndPoint_2_1.cs: Adjust exceptions wrt unit tests
* HttpWebRequest_2_1.cs: Fix Headers property wrt unit tests:
* WebClient_2_1.cs: Fix some properties
* WebHeaderCollection_2_1.cs: Adjust exceptions wrt unit tests
* WebRequest_2_1.cs: Add RegisterPrefix functionality and add
missing checks (fix unit tests)
2009-04-09 Sebastien Pouliot <sebastien@ximian.com>
* DnsEndPoint_2_1.cs: Fix header.
* HttpStatusCode_2_1.cs: New. SL2 (short) version of the enum
* HttpWebRequest_2_1.cs: Add missing members
* WebExceptionStatus_2_1.cs: New. SL2 (short) version of the enum
* WebHeaderCollection_2_1.cs: Implement S.C.IEnumerable
2009-03-11 Rolf Bjarne Kvinge <RKvinge@novell.com>
* WebClient_2_1.cs: OnOpenReadCompleted and OnDownloadStringCompleted:
make sure we don't pass any exceptions back to native code.
2009-03-04 Rolf Bjarne Kvinge <RKvinge@novell.com>
* WebClient_2_1.cs: Stub out missing methods.
* WriteStreamClosedEventArgs_2_1.cs:
* WriteStreamClosedEventHandler_2_1.cs: Added.
2009-02-05 Geoff Norton <gnorton@novell.com>
* WebClient_2_1.cs: Use g_timeout_add instead of g_idle_add here until
SyncContext is ready, as its less prone to starvation.
2009-02-05 Geoff Norton <gnorton@novell.com>
* WebClient_2_1.cs: CancelAsync calls Thread.Interrupt so needs to be
SecuritySafeCritical for now.
2009-01-26 Rolf Bjarne Kvinge <rkvinge@novell.com>
* WebClient_2_1.cs: Ensure we don't let exceptions go to native code.
* HttpWebRequest_2_1.cs: Add AllowReadStreamBuffering.
2009-01-21 Geoff Norton <gnorton@novell.com>
* WebClient_2_1.cs: Make the ManualResetEvent local to the callback
because a WebClient can be reused causing a wait-handle race here
allowing a delegate to get collected causing a crash.
2009-01-21 Chris Toshok <toshok@ximian.com>
* WebClient_2_1.cs: add 1 method back in, CancelAsync.
2009-01-12 Geoff Norton <gnorton@novell.com>
* WebClient_2.1.cs: SL2 webclient supports BaseAddress.
2008-10-16 Jb Evain <jbevain@novell.com>
* WebHeaderCollection_2_1.cs: update to SL2 api.
2008-10-16 Jb Evain <jbevain@novell.com>
* WebResponse_2_1.cs: update API to SL2.
2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
* WebClient_2_1.cs: set the address on OpenReadCompletedEventArgs
ctor.
2008-08-21 Stephane Delcroix <sdelcroix@novell.com>
* WebClient_2_1.cs: enable the DownloadStringAsync code
2008-08-19 Geoff Norton <gnorton@novell.com>
* WebClient_2_1.cs: Keep a reference to the tick callback until its completed.
2008-08-18 Geoff Norton <gnorton@novell.com>
* WebRequest_2_1.cs: Set a delegate callback for BrowserHttpWebRequest
to update progress.
* WebClient_2_1.cs: Refactor the OnDownloadedChanged method, as its already
emitting on the right thread. Clean up the OnOpenReadCompleted method.
Set a delegate callback for BrowserHttpWebRequest to updated Progress.
2008-08-17 Geoff Norton <gnorton@novell.com>
* WebRequest_2_1.cs: We support relative URI's now.
2008-08-14 Geoff Norton <gnorton@novell.com>
* WebClient_2_1.cs: A dirty hack to emit the events on the proper thread
until we can figure out exactly how to leverage Dispatcher over here.
2008-06-18 Stephane Delcroix <sdelcroix@novell.com>
* WebRequest_2_1.cs: Load BrowserHttpWebRequest from the right assembly
2008-06-10 Stephane Delcroix <sdelcroix@novell.com>
* DnsEndPoint_2_1.cs: embed an IPAddress and rely on IPEndPoint
for serialization.
2008-06-04 Stephane Delcroix <sdelcroix@novell.com>
* DnsEndPoint_2_1.cs: new DnsEndPoint class for SL2b1
2008-04-13 Jb Evain <jbevain@novell.com>
* *_2_1.cs: move the specific 2.1 System.Net code to the
assembly System.Net.

View File

@@ -0,0 +1,57 @@
// System.Net.IPEndPointCollection
//
// Author:
// Gonzalo Paniagua Javier (gonzalo@novell.com)
//
// Copyright (c) 2009 Novell, Inc. (http://www.novell.com)
//
// 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.
//
#if NET_2_0
using System;
using System.Collections.ObjectModel;
namespace System.Net {
public class IPEndPointCollection : Collection<IPEndPoint> {
public IPEndPointCollection ()
{
}
protected override void InsertItem (int index, IPEndPoint item)
{
if (item == null)
throw new ArgumentNullException ("item");
Items.Insert (index, item);
}
protected override void SetItem (int index, IPEndPoint item)
{
if (item == null)
throw new ArgumentNullException ("item");
Items [index] = item;
}
}
}
#endif