comparison 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
comparison
equal deleted inserted replaced
137:238e15580926 138:f75cfa58e3d4
15 TraceContext.Instance.EnterLogicalOperation(op,true); 15 TraceContext.Instance.EnterLogicalOperation(op,true);
16 TraceLog.TraceError("promise died {0}", err); 16 TraceLog.TraceError("promise died {0}", err);
17 TraceLog.EndLogicalOperation(); 17 TraceLog.EndLogicalOperation();
18 TraceContext.Instance.Leave(); 18 TraceContext.Instance.Leave();
19 }, 19 },
20 () => { 20 reason => {
21 TraceContext.Instance.EnterLogicalOperation(op,true); 21 TraceContext.Instance.EnterLogicalOperation(op,true);
22 TraceLog.TraceInformation("promise cancelled"); 22 TraceLog.TraceInformation("promise cancelled {0}", reason.Message);
23 TraceLog.EndLogicalOperation(); 23 TraceLog.EndLogicalOperation();
24 TraceContext.Instance.Leave(); 24 TraceContext.Instance.Leave();
25 } 25 }
26 ); 26 );
27 } 27 }