Table of Contents

Class CrashDetectionSinkBase<TStart, TFinish>

Namespace
Xunit.v3
Assembly
xunit.v3.runner.utility.netfx.dll

Base class for crash detection, to be used by Xunit3 during discovery and execution so that we can always ensure runners get starting and finished messages.

public abstract class CrashDetectionSinkBase<TStart, TFinish> : LongLivedMarshalByRefObject, IMessageSink where TStart : IMessageSinkMessage, ITestAssemblyMessage where TFinish : IMessageSinkMessage

Type Parameters

TStart

The start message type

TFinish

The finish message type

Inheritance
CrashDetectionSinkBase<TStart, TFinish>
Implements
Derived
Inherited Members

Constructors

CrashDetectionSinkBase(XunitProjectAssembly, IMessageSink)

Base class for crash detection, to be used by Xunit3 during discovery and execution so that we can always ensure runners get starting and finished messages.

Properties

Finish

Gets the finish message, if one was seen.

FinishWaitMilliseconds

This override is for testing purposes.

InnerSink

Gets the inner sink for message delegation.

ProjectAssembly

Gets the project assembly.

Start

Gets the start message, if one was seen.

Methods

OnMessage(IMessageSinkMessage)

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

OnProcessFinished(int?)

Call this message to ensure the starting and finished messages were sent, and also send an IErrorMessage if it appears that the test process crashed rather than cleaning up appropriately.

SendFinish(string)

Implement this to send the finished message.

SendStart(string)

Implement this to send the starting message.