diff --git a/Implab.Test/Implab.Test.csproj b/Implab.Test/Implab.Test.csproj
--- a/Implab.Test/Implab.Test.csproj
+++ b/Implab.Test/Implab.Test.csproj
@@ -2,7 +2,7 @@
net46
- /usr/lib/mono/4.5/
+ /usr/lib/mono/4.5/
false
diff --git a/Implab.Test/UnitTest1.cs b/Implab.Test/UnitTest1.cs
--- a/Implab.Test/UnitTest1.cs
+++ b/Implab.Test/UnitTest1.cs
@@ -2,6 +2,7 @@ using System;
using System.Diagnostics;
using System.Threading;
using Implab.Diagnostics;
+using System.Linq;
using Xunit;
namespace Implab.Test {
@@ -11,19 +12,29 @@ namespace Implab.Test {
[Fact]
public async Task Test1() {
var listener = new SimpleTraceListener(Console.Out);
+ listener.TraceOutputOptions |= TraceOptions.ThreadId;
var source = TraceSource;
source.Switch.Level = SourceLevels.All;
source.Listeners.Add(listener);
- using (var op = LogicalOperation(nameof(Test1)))
- using (LogicalOperation("InnerOperation")){
+ using (LogicalOperation("Test1")){
await Task.Yield();
- Log("Inner");
- await Task.Yield();
- Log("source event");
+ Log(String.Join(", ", Trace.CorrelationManager.LogicalOperationStack.Cast