Interface IWorkerSerializer<TInput, TOutput>
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
TInputTOutput
Methods
DeserializeInput(string)
TInput DeserializeInput(string serialized)
Parameters
serializedstring
Returns
- TInput
DeserializeOutput(string)
TOutput DeserializeOutput(string serialized)
Parameters
serializedstring
Returns
- TOutput
SerializeInput(TInput)
string SerializeInput(TInput input)
Parameters
inputTInput
Returns
SerializeOutput(TOutput)
string SerializeOutput(TOutput output)
Parameters
outputTOutput