Table of Contents

Class DelegatingMessageSink

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

Implementation of IMessageSink that delegates to another implementation of IMessageSink while calling into an optional callback for each message.

public class DelegatingMessageSink : IMessageSink
Inheritance
DelegatingMessageSink
Implements
Derived
Inherited Members

Constructors

DelegatingMessageSink(IMessageSink, Action<IMessageSinkMessage>?)

Implementation of IMessageSink that delegates to another implementation of IMessageSink while calling into an optional callback for each message.

public DelegatingMessageSink(IMessageSink innerSink, Action<IMessageSinkMessage>? callback = null)

Parameters

innerSink IMessageSink

The inner message sink.

callback Action<IMessageSinkMessage>

The callback.

Methods

OnMessage(IMessageSinkMessage)

Reports the presence of a message on the message bus. This method should never throw exceptions.

public virtual bool OnMessage(IMessageSinkMessage message)

Parameters

message IMessageSinkMessage

The message from the message bus

Returns

bool

Return true to continue running tests, or false to stop.