mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-03 14:03:09 +00:00
33 lines
675 B
C#
33 lines
675 B
C#
using ContinuousTests;
|
|
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
Console.WriteLine("Codex Continuous-Test-Runner.");
|
|
|
|
var runner = new ContinuousTestRunner(args, Cancellation.Cts.Token);
|
|
|
|
Console.CancelKeyPress += (sender, e) =>
|
|
{
|
|
Console.WriteLine("Stopping...");
|
|
e.Cancel = true;
|
|
|
|
Cancellation.Cts.Cancel();
|
|
};
|
|
|
|
runner.Run();
|
|
Console.WriteLine("Done.");
|
|
}
|
|
}
|
|
|
|
public static class Cancellation
|
|
{
|
|
static Cancellation()
|
|
{
|
|
Cts = new CancellationTokenSource();
|
|
}
|
|
|
|
public static CancellationTokenSource Cts { get; }
|
|
}
|