##// END OF EJS Templates
improved tracing...
improved tracing added the application components container MTComponentContainer.AppContainer

File last commit:

r92:4c0e5ef99986 v2
r93:dc4942d09e74 v2
Show More
Extensions.cs
15 lines | 522 B | text/x-csharp | CSharpLexer
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();
});
}
}
}