Skip to content

Class KernelRpcMarshaller

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

Marshals between plain C# values and the sandbox DotBoxD.Kernels.Sandbox.SandboxValue world for server extension service calls: caller arguments are converted to sandbox values for DotBoxD.Plugins.Kernel.InstalledKernel.InvokeServerExtensionAsync(System.Collections.Generic.IReadOnlyList{DotBoxD.Kernels.Sandbox.SandboxValue},System.Threading.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

objectKernelRpcMarshaller

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

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

value SandboxValue

type Type

object?

public static SandboxType SandboxTypeOf(Type type)

type Type

SandboxType

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

value object?

type Type

SandboxValue