Table of Contents

Class PlatformJsonEnvelope

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.dll

A JSON-RPC request or response body whose real payload is a System.Text.Json string (see PlatformJson). Flat by design so the transport's own serializer round-trips it.

public record PlatformJsonEnvelope : IEquatable<PlatformJsonEnvelope>
Inheritance
PlatformJsonEnvelope
Implements
Inherited Members

Properties

Json

The System.Text.Json representation of the payload.

public string Json { get; init; }

Property Value

string

Methods

Of<T>(T)

Wraps payload in an envelope.

public static PlatformJsonEnvelope Of<T>(T payload)

Parameters

payload T

Returns

PlatformJsonEnvelope

Type Parameters

T

Unwrap<T>()

Deserializes the wrapped payload as T.

public T Unwrap<T>()

Returns

T

Type Parameters

T