Mercurial > pub > ImplabNet
view MonoPlay/Program.cs @ 96:daffa72a1cec v2
Added the chaining method to the non-generic IPromise
author | cin |
---|---|
date | Thu, 30 Oct 2014 10:06:16 +0300 |
parents | a43745f81f10 |
children | b3f5bc613905 |
line wrap: on
line source
using System; using Implab.Diagnostics; using Implab.Parallels; using Implab; namespace MonoPlay { class MainClass { public static void Main(string[] args) { if (args == null) throw new ArgumentNullException("args"); var listener = new ConsoleTraceListener(true); listener.Subscribe<TraceEvent>(); MTComponentContainer.AppContainer.Add(listener); TraceLog.StartLogicalOperation("program"); TraceLog.StartLogicalOperation("async"); AsyncPool.Invoke(() => { TraceLog.TraceInformation("Hello async"); TraceLog.StartLogicalOperation("foo"); return 0; }) .EndLogicalOperation() .Join(); TraceLog.EndLogicalOperation(); } } }