RemoteCommandPayload
The request frame a client sends, as a big-endian four-byte length prefix followed by that many bytes of UTF-8 JSON in this shape.
RemoteCommandClient builds it, so this matters only to a client written in another language.
Fields
Command: string
Name declared by RemoteCommandAttribute on the handling class.
Data: JsonElement
The command's message, deserialized into T by RemoteCommand<T>.
Secret: string?
Pre-shared key, when the server configures one.
Default: null
Type signature
csharp
public sealed record RemoteCommandPayload
{
public string Command { get; init; } = string.Empty;
public JsonElement Data { get; init; }
public string? Secret { get; init; }
}