Table of Contents

Interface IHostsPerformance

Namespace
CSF.Screenplay
Assembly
CSF.Screenplay.Abstractions.dll

An object which encapsulates the logic of an IPerformance in a standalone Screenplay.

public interface IHostsPerformance

Remarks

Implementors should inject any dependencies they require into their constructors. The ExecutePerformanceAsync(CancellationToken) method is used to execute the logic of an IPerformance, returning its result.

Methods

ExecutePerformanceAsync(CancellationToken)

Executes the logic of a performance, returning the result.

Task<bool?> ExecutePerformanceAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A cancellation token

Returns

Task<bool?>

A task which exposes the result of the performance.

Remarks

The result of the performance has the same semantics as FinishPerformance(bool?). Implementors should use this method to execute the logic of the performance.