Table of Contents

Class EventPump

Namespace
NUnit.Framework.Internal.Execution
Assembly
nunit.framework.dll

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 ITestListener

The EventListener to receive events

events EventQueue

The 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

string

PumpState

Gets or sets the current state of the pump

public EventPumpState PumpState { get; }

Property Value

EventPumpState

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()