Skip to content

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

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object, object), object.ToString()

Error message (if not successful).

public string? ErrorMessage { readonly get; set; }

string?

Error type name (if not successful).

public string? ErrorType { readonly get; set; }

string?

Whether the call was successful.

public bool IsSuccess { readonly get; set; }

bool

The message ID this response corresponds to.

public int MessageId { readonly get; set; }

int

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

public RpcStreamHandle? Stream { readonly get; set; }

RpcStreamHandle?