The Labs \ Source Viewer \ SSCLI \ System.Diagnostics \ TraceFilter

  1. //------------------------------------------------------------------------------
  2. // <copyright file="TraceFilter.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. using System;
  16. namespace System.Diagnostics
  17. {
  18.     public abstract class TraceFilter
  19.     {
  20.         internal string initializeData;
  21.        
  22.         public abstract bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1, object[] data);
  23.        
  24.         internal bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage)
  25.         {
  26.             return ShouldTrace(cache, source, eventType, id, formatOrMessage, null, null, null);
  27.         }
  28.        
  29.         internal bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args)
  30.         {
  31.             return ShouldTrace(cache, source, eventType, id, formatOrMessage, args, null, null);
  32.         }
  33.        
  34.         internal bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1)
  35.         {
  36.             return ShouldTrace(cache, source, eventType, id, formatOrMessage, args, data1, null);
  37.         }
  38.     }
  39. }

Developer Fusion