16 lines
388 B
C#
16 lines
388 B
C#
using System.Text.Json;
|
|
|
|
namespace CommIpc;
|
|
|
|
/// <summary>
|
|
/// Single protocol unit sent over the pipe. This is intentionally generic.
|
|
///
|
|
/// Transport framing: 4-byte little-endian length prefix + UTF-8 JSON bytes.
|
|
/// </summary>
|
|
public sealed record IpcFrame(
|
|
string Kind,
|
|
string? CorrelationId = null,
|
|
JsonElement? Payload = null,
|
|
DateTimeOffset? Timestamp = null
|
|
);
|