using System.Threading;
using System.Threading.Tasks;
using ZB.MOM.WW.MxGateway.Worker.Bootstrap;
namespace ZB.MOM.WW.MxGateway.Worker.Ipc;
/// Manages the worker's named pipe connection to the gateway.
public interface IWorkerPipeClient
{
/// Connects to the gateway and runs the worker until the session ends or is cancelled.
/// Configuration options.
/// Token to cancel the asynchronous operation.
Task RunAsync(
WorkerOptions options,
CancellationToken cancellationToken = default);
}