Mercurial > pub > ImplabNet
diff Implab/ICancelationToken.cs @ 144:8c0b95069066 v2
DRAFT: refactoring
author | cin |
---|---|
date | Fri, 06 Mar 2015 15:45:26 +0300 |
parents | 16f926ee499d |
children |
line wrap: on
line diff
--- a/Implab/ICancelationToken.cs Wed Mar 04 18:05:39 2015 +0300 +++ b/Implab/ICancelationToken.cs Fri Mar 06 15:45:26 2015 +0300 @@ -22,14 +22,14 @@ /// Sets the token to cancelled state. /// </summary> /// <param name="reason">The reason why the operation was cancelled.</param> - void SetCancelled(Exception reason); + void CancelOperation(Exception reason); /// <summary> /// Adds the listener for the cancellation request, is the cancellation was requested the <paramref name="handler"/> /// is executed immediatelly. /// </summary> /// <param name="handler">The handler which will be executed if the cancel occurs.</param> - void CancellationRequested(Action<Exception> handler); + void CancelationRequested(Action<Exception> handler); } }