Table of Contents

Class SystemTextJsonWorkerSerializer<TInput, TOutput>

Namespace
InferenceEngine.Core.Worker
Assembly
InferenceEngine.Core.dll

Default IWorkerSerializer<TInput, TOutput> using JsonSerializer. byte[] is serialized as a base64 string (System.Text.Json's built-in behavior), so byte[]→List<T> engines (e.g. ONNX detection) work out of the box.

public sealed class SystemTextJsonWorkerSerializer<TInput, TOutput> : IWorkerSerializer<TInput, TOutput>

Type Parameters

TInput
TOutput
Inheritance
SystemTextJsonWorkerSerializer<TInput, TOutput>
Implements
IWorkerSerializer<TInput, TOutput>
Inherited Members

Methods

DeserializeInput(string)

public TInput DeserializeInput(string serialized)

Parameters

serialized string

Returns

TInput

DeserializeOutput(string)

public TOutput DeserializeOutput(string serialized)

Parameters

serialized string

Returns

TOutput

SerializeInput(TInput)

public string SerializeInput(TInput input)

Parameters

input TInput

Returns

string

SerializeOutput(TOutput)

public string SerializeOutput(TOutput output)

Parameters

output TOutput

Returns

string