mirror of
https://github.com/actions/runner.git
synced 2026-03-18 15:41:24 +08:00
26 lines
827 B
C#
26 lines
827 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using GitHub.Runner.Common;
|
|
|
|
namespace GitHub.Runner.Worker.Dap
|
|
{
|
|
internal interface IDapDebuggerCallbacks
|
|
{
|
|
Task HandleMessageAsync(string messageJson, CancellationToken cancellationToken);
|
|
void HandleClientConnected();
|
|
void HandleClientDisconnected();
|
|
}
|
|
|
|
[ServiceLocator(Default = typeof(DapServer))]
|
|
internal interface IDapServer : IRunnerService
|
|
{
|
|
void SetDebugger(IDapDebuggerCallbacks debugger);
|
|
Task StartAsync(int port, CancellationToken cancellationToken);
|
|
Task WaitForConnectionAsync(CancellationToken cancellationToken);
|
|
Task StopAsync();
|
|
void SendMessage(ProtocolMessage message);
|
|
void SendEvent(Event evt);
|
|
void SendResponse(Response response);
|
|
}
|
|
}
|