FxTrace.cs 743 B

123456789101112131415161718192021222324252627282930313233
  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. public static ExceptionTrace Exception {
  17. get {
  18. return new ExceptionTrace ("System.Runtime.Serialization", Trace);
  19. }
  20. }
  21. public static bool IsEventEnabled (int index)
  22. {
  23. return false;
  24. }
  25. public static void UpdateEventDefinitions (EventDescriptor [] ed, ushort [] events) {}
  26. }
  27. }