* 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
* 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
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
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
* 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
* 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