diff Implab/Parallels/AsyncPool.cs @ 36:313f708a50e9 diagnostics

improved log concept
author cin
date Tue, 15 Apr 2014 02:00:09 +0400
parents 2880242f987a
children fe33f4e02ad5
line wrap: on
line diff
--- a/Implab/Parallels/AsyncPool.cs	Mon Apr 14 18:25:26 2014 +0400
+++ b/Implab/Parallels/AsyncPool.cs	Tue Apr 15 02:00:09 2014 +0400
@@ -14,10 +14,10 @@
 
 		public static Promise<T> Invoke<T>(Func<T> func) {
 			var p = new Promise<T>();
-            var caller = LogContext.Current;
+            var caller = TraceContext.Current;
 
 			ThreadPool.QueueUserWorkItem(param => {
-                Log.Transfer(caller);
+                TraceLog.Transfer(caller);
 				try {
 					p.Resolve(func());
 				} catch(Exception e) {
@@ -31,10 +31,10 @@
         public static Promise<T> InvokeNewThread<T>(Func<T> func) {
             var p = new Promise<T>();
 
-            var caller = LogContext.Current;
+            var caller = TraceContext.Current;
 
             var worker = new Thread(() => {
-                Log.Transfer(caller);
+                TraceLog.Transfer(caller);
                 try {
                     p.Resolve(func());
                 } catch (Exception e) {