comparison Implab/Diagnostics/TraceLog.cs @ 192:f1da3afc3521 release v2.1

Слияние с v2
author cin
date Fri, 22 Apr 2016 13:10:34 +0300
parents 4c0e5ef99986
children ea485487a424
comparison
equal deleted inserted replaced
71:1714fd8678ef 192:f1da3afc3521
12 /// контекстом трассировки. 12 /// контекстом трассировки.
13 /// </summary> 13 /// </summary>
14 public static class TraceLog { 14 public static class TraceLog {
15 [Conditional("TRACE")] 15 [Conditional("TRACE")]
16 public static void StartLogicalOperation() { 16 public static void StartLogicalOperation() {
17 TraceContext.Current.StartLogicalOperation(); 17 TraceContext.Instance.StartLogicalOperation();
18 } 18 }
19 19
20 [Conditional("TRACE")] 20 [Conditional("TRACE")]
21 public static void StartLogicalOperation(string name) { 21 public static void StartLogicalOperation(string name) {
22 TraceContext.Current.StartLogicalOperation(name); 22 TraceContext.Instance.StartLogicalOperation(name);
23 } 23 }
24 24
25 [Conditional("TRACE")] 25 [Conditional("TRACE")]
26 public static void EndLogicalOperation() { 26 public static void EndLogicalOperation() {
27 TraceContext.Current.EndLogicalOperation(); 27 TraceContext.Instance.EndLogicalOperation();
28 }
29
30 [Conditional("TRACE")]
31 public static void BindLogicalOperationToPromise(IPromise promise) {
32 TraceContext.Current.BindLogicalOperationToPromise(promise);
33 } 28 }
34 29
35 [Conditional("TRACE")] 30 [Conditional("TRACE")]
36 public static void TraceInformation(string format, params object[] arguments) { 31 public static void TraceInformation(string format, params object[] arguments) {
37 LogChannel<TraceEvent>.Default.LogEvent(TraceEvent.Create(TraceEventType.Information, format, arguments)); 32 LogChannel<TraceEvent>.Default.LogEvent(TraceEvent.Create(TraceEventType.Information, format, arguments));