// // AvTrace constructor // // Parameters: // getTraceSourceDelegate and clearTraceSourceDelegate are for accessing the // TraceSource (that corresponds to this AvTrace) from PresentationTraceSources. // public AvTrace(GetTraceSourceDelegate getTraceSourceDelegate, ClearTraceSourceDelegate clearTraceSourceDelegate) { _getTraceSourceDelegate = getTraceSourceDelegate; _clearTraceSourceDelegate = clearTraceSourceDelegate; // Get notified when we need to check the registry and debugger attached-ness. PresentationTraceSources.TraceRefresh += new TraceRefreshEventHandler(Refresh); // Fetch and cache the TraceSource from PresentationTraceSources Initialize(); }
// // AvTrace constructor // // Parameters: // getTraceSourceDelegate and clearTraceSourceDelegate are for accessing the // TraceSource (that corresponds to this AvTrace) from PresentationTraceSources. // public AvTrace( GetTraceSourceDelegate getTraceSourceDelegate, ClearTraceSourceDelegate clearTraceSourceDelegate ) { _getTraceSourceDelegate = getTraceSourceDelegate; _clearTraceSourceDelegate = clearTraceSourceDelegate; // Get notified when we need to check the registry and debugger attached-ness. PresentationTraceSources.TraceRefresh += new TraceRefreshEventHandler(Refresh); // Fetch and cache the TraceSource from PresentationTraceSources Initialize(); }