~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Core.ProgressMonitoring/NullProgressMonitor.cs

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-03-29 23:36:33 UTC
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20080329233633-l550uuwvfh1e68at
Tags: upstream-1.0+dfsg
ImportĀ upstreamĀ versionĀ 1.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
                
143
143
                void IAsyncOperation.Cancel ()
144
144
                {
145
 
                        lock (this) {
146
 
                                if (canceled) return;
147
 
                                canceled = true;
148
 
                        }
149
 
                        if (cancelRequestedEvent != null)
150
 
                                cancelRequestedEvent (this);
 
145
                        OnCancelRequested ();
151
146
                }
152
147
                
153
148
                void IAsyncOperation.WaitForCompleted ()
201
196
                        }
202
197
                }               
203
198
                
 
199
                protected virtual void OnCancelRequested ()
 
200
                {
 
201
                        lock (this) {
 
202
                                if (canceled) return;
 
203
                                canceled = true;
 
204
                        }
 
205
                        if (cancelRequestedEvent != null)
 
206
                                cancelRequestedEvent (this);
 
207
                }
 
208
                
204
209
                protected virtual void OnCompleted ()
205
210
                {
206
211
                        if (completedEvent != null)