# HG changeset patch
# User cin
# Date 1523405114 -10800
# Node ID c52691faaf21a49ce4132f9794009e9dfa57b033
# Parent b00441e04738bb9ea06c37f7b59fd753461d7731
Removed obsolete App, ComponentContainer
Extracted IAsyncComponent interface
Working on RunnableComponent
diff -r b00441e04738 -r c52691faaf21 Implab.Test/Implab.Test.csproj
--- a/Implab.Test/Implab.Test.csproj Wed Apr 04 15:38:48 2018 +0300
+++ b/Implab.Test/Implab.Test.csproj Wed Apr 11 03:05:14 2018 +0300
@@ -2,7 +2,7 @@
net46
- /usr/lib/mono/4.5/
+ /usr/lib/mono/4.5/
false
diff -r b00441e04738 -r c52691faaf21 Implab.Test/UnitTest1.cs
--- a/Implab.Test/UnitTest1.cs Wed Apr 04 15:38:48 2018 +0300
+++ b/Implab.Test/UnitTest1.cs Wed Apr 11 03:05:14 2018 +0300
@@ -2,6 +2,7 @@
using System.Diagnostics;
using System.Threading;
using Implab.Diagnostics;
+using System.Linq;
using Xunit;
namespace Implab.Test {
@@ -11,19 +12,29 @@
[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