13 lines
452 B
C#
13 lines
452 B
C#
namespace RobotNet10.NavigationTune.Interfaces;
|
|
|
|
/// <summary>
|
|
/// Singleton registry to cancel a running test by testRunId.
|
|
/// Stop/EMC Stop API runs in a different HTTP scope than the test; this allows cancelling the correct test.
|
|
/// </summary>
|
|
public interface IRunningTestCancellationRegistry
|
|
{
|
|
void Register(Guid testRunId, CancellationTokenSource cts);
|
|
bool TryCancel(Guid testRunId);
|
|
void Unregister(Guid testRunId);
|
|
}
|