mirror of
https://github.com/actions/runner.git
synced 2026-03-18 15:41:24 +08:00
30 lines
815 B
C#
30 lines
815 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using GitHub.Runner.Common;
|
|
|
|
namespace GitHub.Runner.Worker.Dap
|
|
{
|
|
public enum DapSessionState
|
|
{
|
|
WaitingForConnection,
|
|
Initializing,
|
|
Ready,
|
|
Paused,
|
|
Running,
|
|
Terminated
|
|
}
|
|
|
|
[ServiceLocator(Default = typeof(DapDebugger))]
|
|
public interface IDapDebugger : IRunnerService
|
|
{
|
|
bool IsActive { get; }
|
|
Task StartAsync(CancellationToken cancellationToken);
|
|
Task WaitUntilReadyAsync(CancellationToken cancellationToken);
|
|
Task StopAsync();
|
|
void CancelSession();
|
|
Task OnStepStartingAsync(IStep step, IExecutionContext jobContext, CancellationToken cancellationToken);
|
|
void OnStepCompleted(IStep step);
|
|
Task OnJobCompletedAsync();
|
|
}
|
|
}
|