7d67313a7d
# Conflicts: # src/MxGateway.Worker/Ipc/WorkerPipeSession.cs # src/MxGateway.Worker/MxAccess/MxAccessStaSession.cs
22 lines
516 B
C#
22 lines
516 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using MxGateway.Contracts.Proto;
|
|
using MxGateway.Worker.Sta;
|
|
|
|
namespace MxGateway.Worker.MxAccess;
|
|
|
|
public interface IWorkerRuntimeSession : IDisposable
|
|
{
|
|
Task<WorkerReady> StartAsync(
|
|
string sessionId,
|
|
int workerProcessId,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task<MxCommandReply> DispatchAsync(StaCommand command);
|
|
|
|
WorkerRuntimeHeartbeatSnapshot CaptureHeartbeat();
|
|
|
|
void RequestShutdown();
|
|
}
|