Table of Contents

Method CreateFromRaw

Namespace
Skyline.DataMiner.Core.InterAppCalls.Common.CallSingle
Assembly
Skyline.DataMiner.Core.InterAppCalls.Common.dll

CreateFromRaw(string, ISerializer)

Creates a message from a raw serialized string.

public static Message CreateFromRaw(string rawData, ISerializer serializer)

Parameters

rawData string

The serialized raw data.

serializer ISerializer

Custom Serializer to use.

Returns

Message

The message.

Exceptions

ArgumentException

Format of rawData is invalid and deserialization failed.

ArgumentNullException

rawData was null or empty.

CreateFromRaw(string, IEnumerable<Type>)

Creates a message from a raw serialized string.

public static Message CreateFromRaw(string rawData, IEnumerable<Type> knownTypes)

Parameters

rawData string

The serialized raw data.

knownTypes IEnumerable<Type>

Using the default serializer required a list of all possible message type classes.

Returns

Message

The message.

Exceptions

ArgumentException

Format of rawData is invalid and deserialization failed.

ArgumentNullException

rawData was null or empty.