Mercurial > pub > ImplabNet
comparison Implab/Diagnostics/TraceContext.cs @ 200:71e543dbe65a v2
working version of the project
| author | cin |
|---|---|
| date | Fri, 14 Oct 2016 04:03:10 +0300 |
| parents | ea485487a424 |
| children | babe55c34931 |
comparison
equal
deleted
inserted
replaced
| 199:43b1017ce100 | 200:71e543dbe65a |
|---|---|
| 46 m_stack.Push(m_current); | 46 m_stack.Push(m_current); |
| 47 m_current = new OperationContext(operation, takeOwnership); | 47 m_current = new OperationContext(operation, takeOwnership); |
| 48 } | 48 } |
| 49 | 49 |
| 50 public void StartLogicalOperation(string name) { | 50 public void StartLogicalOperation(string name) { |
| 51 LogChannel<TraceEvent>.Default.LogEvent(new TraceEvent(TraceEventType.OperationStarted, name)); | 51 LogChannel<TraceEvent>.Default.LogEvent(new TraceEvent(TraceContext.Instance.CurrentOperation, TraceEventType.OperationStarted, name)); |
| 52 m_current.BeginLogicalOperation(name); | 52 m_current.BeginLogicalOperation(name); |
| 53 } | 53 } |
| 54 | 54 |
| 55 public void StartLogicalOperation() { | 55 public void StartLogicalOperation() { |
| 56 StartLogicalOperation(String.Empty); | 56 StartLogicalOperation(String.Empty); |
