Initial commit
This commit is contained in:
15
CommIpc/IpcFrame.cs
Normal file
15
CommIpc/IpcFrame.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
);
|
||||
Reference in New Issue
Block a user