comparison Implab/ICancelationToken.cs @ 144:8c0b95069066 v2

DRAFT: refactoring
author cin
date Fri, 06 Mar 2015 15:45:26 +0300
parents 16f926ee499d
children
comparison
equal deleted inserted replaced
143:16f926ee499d 144:8c0b95069066
20 20
21 /// <summary> 21 /// <summary>
22 /// Sets the token to cancelled state. 22 /// Sets the token to cancelled state.
23 /// </summary> 23 /// </summary>
24 /// <param name="reason">The reason why the operation was cancelled.</param> 24 /// <param name="reason">The reason why the operation was cancelled.</param>
25 void SetCancelled(Exception reason); 25 void CancelOperation(Exception reason);
26 26
27 /// <summary> 27 /// <summary>
28 /// Adds the listener for the cancellation request, is the cancellation was requested the <paramref name="handler"/> 28 /// Adds the listener for the cancellation request, is the cancellation was requested the <paramref name="handler"/>
29 /// is executed immediatelly. 29 /// is executed immediatelly.
30 /// </summary> 30 /// </summary>
31 /// <param name="handler">The handler which will be executed if the cancel occurs.</param> 31 /// <param name="handler">The handler which will be executed if the cancel occurs.</param>
32 void CancellationRequested(Action<Exception> handler); 32 void CancelationRequested(Action<Exception> handler);
33 33
34 } 34 }
35 } 35 }
36 36