Table of Contents

Method CreateFromRawAndAcceptMessage

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

CreateFromRawAndAcceptMessage(string, ISerializer, ISerializer)

Creates an inter-app call from the specified string.

public static IInterAppCall CreateFromRawAndAcceptMessage(string rawData, ISerializer interAppSerializer, ISerializer messageSerializer)

Parameters

rawData string

The serialized raw data.

interAppSerializer ISerializer

Serializer to use for InterAppCall.

messageSerializer ISerializer

Serializer to use for Message.

Returns

IInterAppCall

An inter-app call.

Exceptions

ArgumentNullException

rawData is empty or null.

ArgumentNullException

messageSerializer is null.

ArgumentException

Format of rawData is invalid and deserialization failed.

CreateFromRawAndAcceptMessage(string, IEnumerable<Type>)

Creates an inter-app call from the specified string.

public static IInterAppCall CreateFromRawAndAcceptMessage(string rawData, IEnumerable<Type> knownTypes)

Parameters

rawData string

The serialized raw data.

knownTypes IEnumerable<Type>

A list of known message types.

Returns

IInterAppCall

An inter-app call.

Exceptions

ArgumentNullException

rawData is empty or null.

ArgumentNullException

knownTypes is null.

ArgumentException

Format of rawData is invalid and deserialization failed.