Table of Contents

Struct RpcResponse

Namespace
DotBoxD.Services.Protocol
Assembly
DotBoxD.Services.dll

Represents an RPC response message. A struct so that framing a response does not heap-allocate the envelope on the server hot path; it is constructed, serialized, and read but never mutated after construction.

public struct RpcResponse
Inherited Members

Properties

ErrorMessage

Error message (if not successful).

public string? ErrorMessage { readonly get; set; }

Property Value

string

ErrorType

Error type name (if not successful).

public string? ErrorType { readonly get; set; }

Property Value

string

IsSuccess

Whether the call was successful.

public bool IsSuccess { readonly get; set; }

Property Value

bool

MessageId

The message ID this response corresponds to.

public int MessageId { readonly get; set; }

Property Value

int

Stream

Non-null when the response payload is delivered by subsequent stream frames.

public RpcStreamHandle? Stream { readonly get; set; }

Property Value

RpcStreamHandle?