[S.R.Serialization] switch to referencesources.
[mono.git] / mcs / class / System.Runtime.Serialization / ReferenceSources / FxTrace.cs
1 //
2 // bare-bones based implementation based on the references
3 // from the Microsoft reference source code to get things to build
4 //
5 using System.Runtime;
6 using System.Runtime.Diagnostics;
7
8 namespace System.Runtime.Serialization {
9         internal static class FxTrace {
10                 public static EtwDiagnosticTrace Trace {
11                         get {
12                                 return Fx.Trace;
13                         }
14                 }
15
16                 public static bool ShouldTraceError = true;
17                 public static bool ShouldTraceVerbose = true;
18
19                 static ExceptionTrace exception;
20                 public static ExceptionTrace Exception {
21                         get {
22                                 if (exception == null)
23                                         return new ExceptionTrace ("System.Runtime.Serialization", Trace);
24                                 return exception;
25                         }
26                 }
27
28                 public static bool IsEventEnabled (int index)
29                 {
30                         return false;
31                 }
32
33                 public static void UpdateEventDefinitions (EventDescriptor [] ed, ushort [] events) {}
34         }
35 }
36