Interface IJsonSerializer

Describes an abstract JSON serializer.

Namespace: Solti.Utils.Rpc.Interfaces
Assembly: Solti.Utils.Rpc.Interfaces.dll
Syntax
public interface IJsonSerializer
Remarks

The implementation should be thread safe.

Methods

DeserializeMultiTypeArrayAsync(IReadOnlyList<Type>, Stream, CancellationToken)

Deserializes a multi-type array.

Declaration
Task<object[]> DeserializeMultiTypeArrayAsync(IReadOnlyList<Type> elementTypes, Stream input, CancellationToken cancellation = default(CancellationToken))
Parameters
Type Name Description
IReadOnlyList<Type> elementTypes
Stream input
CancellationToken cancellation
Returns
Type Description
Task<Object[]>

SerializeAsync(Type, Object, Stream, CancellationToken)

Serailizes an object.

Declaration
Task SerializeAsync(Type type, object obj, Stream output, CancellationToken cancellation = default(CancellationToken))
Parameters
Type Name Description
Type type
Object obj
Stream output
CancellationToken cancellation
Returns
Type Description
Task
In This Article
Back to top Generated by DocFX