/// <summary> /// ctor. /// </summary> /// <param name="sessionName">Name of the session.</param> public EtwTraceConsumer(string sessionName) { Debug.Assert(!String.IsNullOrEmpty(sessionName), "!String.IsNullOrEmpty(sessionName)"); CDFMonitor.LogOutputHandler("DEBUG:EtwTraceConsumer.ctor: new trace:" + sessionName); _sessionName = sessionName; _eventTraceBufferCallback = OnBufferRead; _eventCallback = OnTraceEvent; }
private void Initialize() { logFile = default(NativeMethods.EventTraceLogFile); bufferCallback = this.BufferCallback; eventCallback = this.EventCallback; }