Files
BQP/srcs/RobotNet10/Commons/RobotNet10.NavigationTune/Interfaces/IRunningTestCancellationRegistry.cs
2026-07-13 09:25:40 +07:00

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);
}