##// END OF EJS Templates
rewritten tracing
rewritten tracing

File last commit:

r92:4c0e5ef99986 v2
r92:4c0e5ef99986 v2
Show More
Extensions.cs
15 lines | 522 B | text/x-csharp | CSharpLexer
cin
rewritten tracing
r92 namespace Implab.Diagnostics {
public static class Extensions {
public static IPromise<T> EndLogicalOperation<T>(this IPromise<T> promise) {
Safe.ArgumentNotNull(promise, "promise");
var op = TraceContext.Instance.DetachLogicalOperation();
return promise.Anyway(() => {
TraceContext.Instance.EnterLogicalOperation(op,true);
TraceLog.EndLogicalOperation();
TraceContext.Instance.Leave();
});
}
}
}