Table of Contents

Class KernelRpcMarshaller

Namespace
DotBoxD.Plugins.Runtime.Rpc
Assembly
DotBoxD.Plugins.dll

Marshals between plain C# values and the sandbox SandboxValue world for server extension service calls: caller arguments are converted to sandbox values for InvokeServerExtensionAsync(IReadOnlyList<SandboxValue>, CancellationToken), and the returned value is converted back to the declared C# result type. Supports the supported scalars, List<T>/IEnumerable<T>, and DTOs (records/structs/classes) mapped to positional records by their fields' declaration order — the same order the analyzer used when it lowered the kernel, so fields line up by position.

public static class KernelRpcMarshaller
Inheritance
KernelRpcMarshaller
Inherited Members

Methods

FromSandboxValue(SandboxValue, Type)

public static object? FromSandboxValue(SandboxValue value, Type type)

Parameters

value SandboxValue
type Type

Returns

object

SandboxTypeOf(Type)

public static SandboxType SandboxTypeOf(Type type)

Parameters

type Type

Returns

SandboxType

ToSandboxValue(object?, Type)

public static SandboxValue ToSandboxValue(object? value, Type type)

Parameters

value object
type Type

Returns

SandboxValue