FxTrace.cs 828 B

123456789101112131415161718192021222324252627282930313233343536
  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. namespace System.Runtime.Serialization {
  8. internal static class FxTrace {
  9. public static EtwDiagnosticTrace Trace {
  10. get {
  11. return Fx.Trace;
  12. }
  13. }
  14. public static bool ShouldTraceError = true;
  15. public static bool ShouldTraceVerbose = true;
  16. static ExceptionTrace exception;
  17. public static ExceptionTrace Exception {
  18. get {
  19. if (exception == null)
  20. return new ExceptionTrace ("System.Runtime.Serialization", Trace);
  21. return exception;
  22. }
  23. }
  24. public static bool IsEventEnabled (int index)
  25. {
  26. return false;
  27. }
  28. public static void UpdateEventDefinitions (EventDescriptor [] ed, ushort [] events) {}
  29. }
  30. }