diff MonoPlay/Program.cs @ 94:a43745f81f10 v2

minor fixes
author cin
date Thu, 23 Oct 2014 17:50:09 +0400
parents dc4942d09e74
children b3f5bc613905
line wrap: on
line diff
--- a/MonoPlay/Program.cs	Thu Oct 23 01:13:57 2014 +0400
+++ b/MonoPlay/Program.cs	Thu Oct 23 17:50:09 2014 +0400
@@ -6,6 +6,9 @@
 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>();
 
@@ -13,12 +16,10 @@
 
             TraceLog.StartLogicalOperation("program");
 
-            Console.WriteLine("Hello World!");
-
             TraceLog.StartLogicalOperation("async");
             AsyncPool.Invoke(() => {
                 TraceLog.TraceInformation("Hello async");
-                TraceLog.StartLogicalOperation();
+                TraceLog.StartLogicalOperation("foo");
                 return 0;
             })
                 .EndLogicalOperation()