C# Class Polly.Specs.Bulkhead.BulkheadSpecsHelper

Inheritance: IDisposable
Show file Open project: App-vNext/Polly

Protected Properties

Property Type Description
shimTimeSpan System.TimeSpan
statusChanged System.Threading.AutoResetEvent
testOutputHelper ITestOutputHelper

Public Methods

Method Description
BulkheadSpecsHelper ( ITestOutputHelper testOutputHelper ) : System
Dispose ( ) : void

Protected Methods

Method Description
EnsureNoUnbservedTaskExceptions ( Task tasks ) : void
OutputActionStatuses ( ) : void
Within ( System.TimeSpan timeSpan, System.Action actionContainingAssertions ) : void

Asserts that the actionContainingAssertions will succeed without AssertionFailedException or XunitException, within the given timespan. Checks are made each time a status-change pulse is received from the TraceableActions executing through the bulkhead.

Method Details

BulkheadSpecsHelper() public method

public BulkheadSpecsHelper ( ITestOutputHelper testOutputHelper ) : System
testOutputHelper ITestOutputHelper
return System

Dispose() public method

public Dispose ( ) : void
return void

EnsureNoUnbservedTaskExceptions() protected static method

protected static EnsureNoUnbservedTaskExceptions ( Task tasks ) : void
tasks Task
return void

OutputActionStatuses() protected method

protected OutputActionStatuses ( ) : void
return void

Within() protected method

Asserts that the actionContainingAssertions will succeed without AssertionFailedException or XunitException, within the given timespan. Checks are made each time a status-change pulse is received from the TraceableActions executing through the bulkhead.
protected Within ( System.TimeSpan timeSpan, System.Action actionContainingAssertions ) : void
timeSpan System.TimeSpan The allowable timespan.
actionContainingAssertions System.Action The action containing fluent assertions, which must succeed within the timespan.
return void

Property Details

shimTimeSpan protected property

protected TimeSpan,System shimTimeSpan
return System.TimeSpan

statusChanged protected property

protected AutoResetEvent,System.Threading statusChanged
return System.Threading.AutoResetEvent

testOutputHelper protected property

protected ITestOutputHelper testOutputHelper
return ITestOutputHelper