namespace ClassNotify.Shared.Ipc;
///
/// Windows Service 与 WinUI 3 前台进程之间的命名管道 IPC 消息类型
///
public enum IpcCommandType
{
Ping = 0,
Pong = 1,
ShowNotification = 2,
CloseNotification = 3,
ReportAck = 4,
HealthCheck = 5,
Hello = 6,
TtsCheck = 7,
TtsCheckResult = 8,
ReportVisualReceipt = 9,
UpdateLicenseStatus = 10,
RequestRenew = 11,
RenewResult = 12,
RequestActivate = 13,
ActivateResult = 14,
GetClientState = 15,
ClientStateResult = 16,
RequestUpdateClassName = 17,
UpdateClassNameResult = 18,
ClassDisplayNameChanged = 19,
EnterPairingMode = 20,
RequestPairingMode = 21,
PairingModeResult = 22,
RequestPairingSession = 25,
PairingSessionResult = 26
}
///
/// 命名管道传输帧
///
public class IpcMessage
{
public IpcCommandType Type { get; set; }
public string? CorrelationId { get; set; } = Guid.NewGuid().ToString("N");
public string? PayloadJson { get; set; }
}