Beispiel #1
0
 public Task ParseAsync(Stream logStream, CancellationToken cancellationToken)
 {
     CheckUsability();
     contextParseCounter.Increment();
     return(XMLLogParser.InternalParse(parser, config, logStream, cancellationToken));
 }
Beispiel #2
0
 /// <summary>
 /// Parse (async) a stream of data to get applicable logs.
 /// </summary>
 /// <param name="logStream">The stream of log data.</param>
 /// <param name="cancellationToken">A cancellation token that can be used to cancel the work</param>
 /// <returns>Task representing the parse operation.</returns>
 public Task ParseAsync(Stream logStream, CancellationToken cancellationToken)
 {
     parseCounter.Increment();
     return(XMLLogParser.InternalParse(this, defaultTransientConfig, logStream, cancellationToken));
 }