[corlib] Add new .NET 4.5 System.Diagnostics.EventSource and EventAttribute APIs.
authorMartin Baulig <martin.baulig@xamarin.com>
Thu, 5 Feb 2015 05:05:45 +0000 (06:05 +0100)
committerMartin Baulig <martin.baulig@xamarin.com>
Mon, 12 Oct 2015 21:19:15 +0000 (17:19 -0400)
(cherry picked from commit 7f098fb7424b78f0e1bbde592a9de71209dcc798)
(cherry picked from commit 6c804183131b9c72261de91947a7f32f3566f811)

mcs/class/corlib/System.Diagnostics.Tracing/EventAttribute.cs
mcs/class/corlib/System.Diagnostics.Tracing/EventSource.cs

index 191e9932deff16a1ad8f66cda6e4c0aa92e05274..33ff04a566acbdbfc9ec3c894f074c357092a512 100644 (file)
@@ -41,6 +41,9 @@ namespace System.Diagnostics.Tracing
                        get; private set;
                }
 
+               public EventLevel Level { get; set; }
+               public EventKeywords Keywords { get; set; }
+
        }
 }
 
index 37c2b3aba61c66daeadeba23341c2a7a264416ff..329d7cbc9537b79b3c4d3f309add7fa9f800c99a 100644 (file)
@@ -77,6 +77,22 @@ namespace System.Diagnostics.Tracing
                protected void WriteEvent (int eventId, string arg1, int arg2, int arg3)
                {
                }
+
+               protected void WriteEvent (int eventId, long arg1)
+               {
+               }
+
+               protected void WriteEvent (int eventId, long arg1, long arg2)
+               {
+               }
+
+               protected void WriteEvent (int eventId, long arg1, long arg2, long arg3)
+               {
+               }
+
+               protected void WriteEvent (int eventId, params object[] args)
+               {
+               }
        }
 }