Show / Hide Table of Contents

Interface IMessageBus

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

Namespace: Xunit.Sdk
Assembly: xunit.core.dll
Syntax
public interface IMessageBus : IDisposable

Methods

| Improve this Doc View Source

QueueMessage(IMessageSinkMessage)

Queues a message to be sent to the runner.

Declaration
bool QueueMessage(IMessageSinkMessage message)
Parameters
Type Name Description
IMessageSinkMessage message

The message to be sent to the runner

Returns
Type Description
Boolean

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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX