diff Implab/Diagnostics/Extensions.cs @ 138:f75cfa58e3d4 v2

added ICancellable.Cancel(Exception) to allow specify the reason of cancellation
author cin
date Tue, 17 Feb 2015 18:16:26 +0300
parents 04d4c92d0f28
children f973c5df9972
line wrap: on
line diff
--- a/Implab/Diagnostics/Extensions.cs	Mon Feb 16 17:48:39 2015 +0300
+++ b/Implab/Diagnostics/Extensions.cs	Tue Feb 17 18:16:26 2015 +0300
@@ -17,9 +17,9 @@
                     TraceLog.EndLogicalOperation();
                     TraceContext.Instance.Leave();
                 },
-                () => {
+                reason => {
                     TraceContext.Instance.EnterLogicalOperation(op,true);
-                    TraceLog.TraceInformation("promise cancelled");
+                    TraceLog.TraceInformation("promise cancelled {0}", reason.Message);
                     TraceLog.EndLogicalOperation();
                     TraceContext.Instance.Leave();
                 }