Class EventTraceStream
Writes each Event read from the underlying stream to a TextWriter before passing it on.
public class EventTraceStream : FilterObjectStream<Event?, Event?>, IObjectStream<Event?>, IDisposable
- Inheritance
-
EventTraceStream
- Implements
- Inherited Members
Constructors
EventTraceStream(IObjectStream<Event?>, TextWriter)
Writes each Event read from the underlying stream to a TextWriter before passing it on.
public EventTraceStream(IObjectStream<Event?> stream, TextWriter writer)
Parameters
streamIObjectStream<Event>writerTextWriter
Methods
Read()
Returns the next object. Calling this method repeatedly until it returns
null will return each object from the underlying source exactly once.
public override Event? Read()
Returns
- Event
the next object or
nullto signal that the stream is exhausted
Exceptions
- IOException
if there is an error during reading