Table of Contents

Interface IMessageBus

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

Used by discovery, execution, and extensibility code to send messages to the runner.

public interface IMessageBus : IDisposable
Inherited Members

Methods

QueueMessage(IMessageSinkMessage)

Queues a message to be sent to the runner.

bool QueueMessage(IMessageSinkMessage message)

Parameters

message IMessageSinkMessage

The message to be sent to the runner

Returns

bool

Returns true if discovery/execution should continue; false, otherwise. The return value may be safely ignored by components which are not directly responsible for discovery or execution, and this is intended to communicate to those sub-systems that that they should short circuit and stop their work as quickly as is reasonable.