Commit Graph
12 Commits
Author SHA1 Message Date
Miguel de Icaza 48292550e8 More NET_2_0 define removal 2011-03-16 21:46:02 -04:00
Sebastien Pouliot de2d4a2ee4 2010-05-21 Sebastien Pouliot <[email protected]>
* AsyncOperation.cs: Add checks for null delegates
	* BackgroundWorker.cs: Ensure ProgressChanged can be called before
	starting the work but not after its complete


svn path=/trunk/mcs/; revision=157698
2010-05-21 13:03:53 +00:00
Jonathan Pobst 4b7f1da9de 2008-09-08 Jonathan Pobst <[email protected]>
* BackgroundWorker.cs: If the user sets Cancel to true, but then
	throws an exception in DoWork, we need to set Cancel back to false.
	[Fixes bug #328830]

svn path=/trunk/mcs/; revision=112520
2008-09-08 16:56:09 +00:00
Jb Evain e0e4361e63 cleanup System.ComponentModel for SL2
svn path=/trunk/mcs/; revision=109344
2008-07-31 13:49:49 +00:00
Jonathan Pobst c2c1e06c8c 2008-07-16 Jonathan Pobst <[email protected]>
Apply patch from Achille Fouilleul (achille.fouilleul at gadz dot org)

	* BackgroundWorker.cs: Ensure the async object is set to null before
	calling RunWorkerCompleted, as IsBusy is based off the async object.
	[Fixes bug #394365]

2008-07-16  Jonathan Pobst  <[email protected]>

	* BackgroundWorkerTest.cs: Add some asserts for bug #364365.

svn path=/trunk/mcs/; revision=108053
2008-07-16 16:24:58 +00:00
Jonathan Pobst 7f29c4c77e 2008-07-16 Jonathan Pobst <[email protected]>
Apply patches from Jordan Callicoat (MonkeeSage at gmail dot com)

	* AsyncCompleteEventArgs.cs: RaiseExceptionIfNecessary should throw
	TargetInvocationException if there was an exception, and IOE if
	the operation was cancelled.
	* BackgroundWorker.cs: Do not call RunWorkerCompleted from CancelAsync,
	setting cancel_pending to true is enough.
	* RunWorkerCompletedEventArgs.cs: Raise exceptions when user tries
	to access the Result if there are any exceptions.
	[Fixes bugs #328830 and 373153]

2008-07-16  Jonathan Pobst  <[email protected]>

	* BackgroundWorkerTest.cs: Add tests for bugs 328830 and 373153.

svn path=/trunk/mcs/; revision=108039
2008-07-16 15:00:10 +00:00
Marek Safar e61dde083e Warnings cleanup
svn path=/trunk/mcs/; revision=89678
2007-11-15 14:14:49 +00:00
Atsushi Eno 044c5019fa 2007-08-01 Atsushi Enomoto <[email protected]>
* BackgroundWorker.cs : remove extra MonoTODOs.

	* BackgroundWorkerTest.cs : new test to clear some doubts on impl.

	* System_test.dll.sources : added BackgroundWorkerTest.cs.


svn path=/trunk/mcs/; revision=83156
2007-08-01 09:14:28 +00:00
Atsushi Eno 6256817e8b 2007-05-31 Atsushi Enomoto <[email protected]>
* AsyncOperationManager.cs AttributeCollection.cs
	  BackgroundWorker.cs BindingList.cs CategoryAttribute.cs
	  Component.cs DataObjectFieldAttribute.cs DefaultValueAttribute.cs
	  DescriptionAttribute.cs EventDescriptorCollection.cs
	  IComNativeDescriptorHandler.cs IListSource.cs
	  ListSortDescriptionCollection.cs MemberDescriptor.cs
	  PropertyDescriptor.cs SyntaxCheck.cs ToolboxItemFilterAttribute.cs:
	  2.0 profile updates.


svn path=/trunk/mcs/; revision=78306
2007-05-31 09:42:25 +00:00
Miguel de Icaza 4009d6c777 This should not be a TODO, its a programmer note
svn path=/trunk/mcs/; revision=78152
2007-05-29 18:32:02 +00:00
Atsushi Eno ce95277afa 2006-04-17 Atsushi Enomoto <[email protected]>
* BackgroundWorker.cs, RunWorkerCompletedEventArgs.cs :
	  cosmetic attribute fixes.


svn path=/trunk/mcs/; revision=59533
2006-04-17 11:14:07 +00:00
Atsushi Eno 574b90cd78 2006-04-17 Atsushi Enomoto <[email protected]>
* AsyncOperation.cs,
	  AsyncOperationManager.cs
	  BackgroundWorker.cs
	  DoWorkEventArgs.cs
	  DoWorkEventHandler.cs
	  RunWorkerCompletedEventArgs.cs
	  RunWorkerCompletedEventHandler.cs :
	  Initial implementation of AsyncOperation and BackgroundWorker.

	  (However I think it does not work as expected - it depends on
	  SynchronizationContext.Post() and I doubt it works fine - the
	  callback should run synchronously while it does not look so.)

	* System.dll.sources : Added AsyncOperation.cs,
	  AsyncOperationManager.cs, BackgroundWorker.cs,
	  DoWorkEventHandler.cs, DoWorkEventArgs.cs,
	  RunWorkerCompletedEventArgs.cs and
	  RunWorkerCompletedEventHandler.cs.


svn path=/trunk/mcs/; revision=59532
2006-04-17 10:56:45 +00:00