OnNewEntry Event (IHTTPAnalyzer)
Top  Previous  Next

Occurs immediately before an new LogEntry adds to log.

Syntax

HTTPAnalyzerClass.OnNewEntry
ILogEvents_SinkHelper.OnNewEntry(HTTPAnalyzer.ILogEntry, ref bool)

Arguments

Entry
A ILogEntry Object. The LogEntry which will be added to log.
Ref DiscardIt A boolean value. The dicardit value is false by default. If you set discardit true. The new logentry will be discarded and destroyed, It will not be added to log.


A C# Sample:

private
 void handleOnNewEntryEvent(ILogEntry logEntry, ref bool DiscardIt)
        {
            if
 (! logEntry.URL.Contains("ieinspector.com"))
            {
              DiscardIt=true
;
            }
        }

----------------
HTTPAnalyzerAddOnClass
 httpAnalyzer=new HTTPAnalyzerAddOnClass();

httpAnalyzer.Start();
httpAnalyzer.
OnNewEntry+= handleOnNewEntryEvent;