Class EventPump
EventPump pulls events out of an EventQueue and sends them to a listener. It is used to send events back to the client without using the CallContext of the test runner thread.
public class EventPump : IDisposable
- Inheritance
-
EventPump
- Implements
- Inherited Members
Constructors
EventPump(ITestListener, EventQueue)
Constructor
public EventPump(ITestListener eventListener, EventQueue events)
Parameters
eventListener
ITestListenerThe EventListener to receive events
events
EventQueueThe event queue to pull events from
Properties
Name
Gets or sets the name of this EventPump (used only internally and for testing).
public string? Name { get; set; }
Property Value
PumpState
Gets or sets the current state of the pump
public EventPumpState PumpState { get; }
Property Value
Methods
Dispose()
Dispose stops the pump Disposes the used WaitHandle, too.
public void Dispose()
Start()
Start the pump
public void Start()
Stop()
Tell the pump to stop after emptying the queue.
public void Stop()