Commit Graph
3 Commits
Author SHA1 Message Date
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00
Miguel de Icaza 737ee8e35c 2007-12-12 Miguel de Icaza <[email protected]>
* WebClient.cs (DownloadFileCore): use longs for the
	ContentLength, although the other code (loading into a byte array,
	or a string) still uses ints, the DownloadFileCore should not.

2007-12-11  Miguel de Icaza  <[email protected]>

	* WebClient.cs: 

	Lots of fixes to get the *Async methods to work.
	
	* WebClient.cs: async, new boolean flag, used to track whether we
	are an async invocation, and if so, we need to invoke some
	methods. 

	Switch to using System.Threading.Thread instead of the ThreadPool
	as there is no way with the ThreadPool to abort threads (to
	implemente CancelAsync). 

	(CompleteAsync): Helper method used to clear the state after an
	async operation completes, otherwise the WebClient can only be
	used once. 

	(CancelAsync): Use Thread.Interrupt to signal the thread that we
	are aborting it (it is a lot milder than Thread.Abort, and we are
	in no rush to cancel this anyways); Also the documentation states
	that we need to call the WebRequest.Abort method, so we do that in
	every Download instance.

	(DownloadDataAsync, DownloadFileAsync, DownloadStringAsync,
	OpenReadAsync, OpenWriteAsync, UplaodDataAsync, UploadFileAsync,
	UploadStringAsync): Make signature parameters match MS; use
	threads instead of threadpool (so we can implement CancelAsync),
	catch ThreadAbortException here so we can also raise the proper
	DownloadDataCompleteEventArgs.

	These routines will also call the WebRequest.Abort when
	appropriate when ThreadInterrupted is used.
	
	(ReadAll): Raise DownloadProgressChanged events.


svn path=/trunk/mcs/; revision=91142
2007-12-12 05:24:52 +00:00
Atsushi Eno 6c4b199ce6 2006-03-28 Atsushi Enomoto <[email protected]>
* System.dll.sources : added ProgressChangedEvent[Args|Handler] in
	  System.ComponentModel, and several WebClient event args in
	  System.Net.

	* ProgressChangedEventHandler.cs ProgressChangedEventArgs.cs :
	  added 2.0 types.

	* DownloadDataCompletedEventArgs.cs
	  DownloadDataCompletedEventHandler.cs
	  DownloadProgressChangedEventArgs.cs
	  DownloadProgressChangedEventHandler.cs
	  DownloadStringCompletedEventArgs.cs
	  OpenReadCompletedEventArgs.cs
	  OpenReadCompletedEventHandler.cs
	  OpenWriteCompletedEventArgs.cs
	  OpenWriteCompletedEventHandler.cs
	  UploadDataCompletedEventArgs.cs
	  UploadDataCompletedEventHandler.cs
	  UploadFileCompletedEventArgs.cs
	  UploadFileCompletedEventHandler.cs
	  UploadProgressChangedEventArgs.cs
	  UploadProgressChangedEventHandler.cs
	  UploadStringCompletedEventArgs.cs
	  UploadStringCompletedEventHandler.cs
	  UploadValuesCompletedEventArgs.cs
	  UploadValuesCompletedEventHandler.cs : added 2.0 types.


svn path=/trunk/mcs/; revision=58647
2006-03-28 10:18:20 +00:00