Table of Contents

Interface IWorkerSerializer<TInput, TOutput>

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

Serializes TInput/TOutput across the out-of-process IPC boundary. The default SystemTextJsonWorkerSerializer<TInput, TOutput> handles byte[] as base64 (System.Text.Json's built-in) and POCOs as JSON.

public interface IWorkerSerializer<TInput, TOutput>

Type Parameters

TInput
TOutput

Methods

DeserializeInput(string)

TInput DeserializeInput(string serialized)

Parameters

serialized string

Returns

TInput

DeserializeOutput(string)

TOutput DeserializeOutput(string serialized)

Parameters

serialized string

Returns

TOutput

SerializeInput(TInput)

string SerializeInput(TInput input)

Parameters

input TInput

Returns

string

SerializeOutput(TOutput)

string SerializeOutput(TOutput output)

Parameters

output TOutput

Returns

string