File: compmod\system\diagnostics\TraceFilter.cs
Project: ndp\fx\src\System.csproj (System)
//------------------------------------------------------------------------------
// <copyright file="TraceFilter.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
 
using System;
 
namespace System.Diagnostics {
    public abstract class TraceFilter {
        internal string initializeData;
 
        public abstract bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, 
                                         object[] args, object data1, object[] data);
 
        internal bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage) {
            return ShouldTrace(cache, source, eventType, id, formatOrMessage, null, null, null);
        }
        
        internal bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args) {
            return ShouldTrace(cache, source, eventType, id, formatOrMessage, args, null, null);
        }
 
        internal bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1) {
            return ShouldTrace(cache, source, eventType, id, formatOrMessage, args, data1, null);
        }
    }
}