Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/Extensions.cs @ 94:a43745f81f10 v2
minor fixes
author | cin |
---|---|
date | Thu, 23 Oct 2014 17:50:09 +0400 |
parents | 4c0e5ef99986 |
children | 1b7ebcc52e5a |
comparison
equal
deleted
inserted
replaced
93:dc4942d09e74 | 94:a43745f81f10 |
---|---|
8 TraceContext.Instance.EnterLogicalOperation(op,true); | 8 TraceContext.Instance.EnterLogicalOperation(op,true); |
9 TraceLog.EndLogicalOperation(); | 9 TraceLog.EndLogicalOperation(); |
10 TraceContext.Instance.Leave(); | 10 TraceContext.Instance.Leave(); |
11 }); | 11 }); |
12 } | 12 } |
13 | |
14 public static IPromise EndLogicalOperation(this IPromise promise) { | |
15 Safe.ArgumentNotNull(promise, "promise"); | |
16 var op = TraceContext.Instance.DetachLogicalOperation(); | |
17 | |
18 return promise.Anyway(() => { | |
19 TraceContext.Instance.EnterLogicalOperation(op,true); | |
20 TraceLog.EndLogicalOperation(); | |
21 TraceContext.Instance.Leave(); | |
22 }); | |
23 } | |
13 } | 24 } |
14 } | 25 } |
15 | 26 |