Table of Contents

Class MaxConcurrencySyncContext

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

An implementation of SynchronizationContext which runs work on custom threads rather than in the thread pool, and limits the number of in-flight actions.

public class MaxConcurrencySyncContext : SynchronizationContext, IDisposable
Inheritance
MaxConcurrencySyncContext
Implements
Inherited Members

Constructors

MaxConcurrencySyncContext(int)

Initializes a new instance of the MaxConcurrencySyncContext class.

public MaxConcurrencySyncContext(int maximumConcurrencyLevel)

Parameters

maximumConcurrencyLevel int

The maximum number of tasks to run at any one time.

Methods

Dispose()

public void Dispose()

Post(SendOrPostCallback, object?)

public override void Post(SendOrPostCallback d, object? state)

Parameters

d SendOrPostCallback
state object

Send(SendOrPostCallback, object?)

public override void Send(SendOrPostCallback d, object? state)

Parameters

d SendOrPostCallback
state object