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 KernelRpcMarshallerInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”FromSandboxValue(SandboxValue, Type)
Section titled “ FromSandboxValue(SandboxValue, Type)”public static object? FromSandboxValue(SandboxValue value, Type type)Parameters
Section titled “Parameters”value SandboxValue
type Type
Returns
Section titled “Returns”SandboxTypeOf(Type)
Section titled “ SandboxTypeOf(Type)”public static SandboxType SandboxTypeOf(Type type)Parameters
Section titled “Parameters”type Type
Returns
Section titled “Returns”ToSandboxValue(object?, Type)
Section titled “ ToSandboxValue(object?, Type)”public static SandboxValue ToSandboxValue(object? value, Type type)Parameters
Section titled “Parameters”value object?
type Type