Class KernelRpcMarshaller
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
valueSandboxValuetypeType
Returns
SandboxTypeOf(Type)
public static SandboxType SandboxTypeOf(Type type)
Parameters
typeType
Returns
ToSandboxValue(object?, Type)
public static SandboxValue ToSandboxValue(object? value, Type type)