Method CreateFromRawAndAcceptMessage
- 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
stringThe serialized raw data.
interAppSerializer
ISerializerSerializer to use for InterAppCall.
messageSerializer
ISerializerSerializer to use for Message.
Returns
- IInterAppCall
An inter-app call.
Exceptions
- ArgumentNullException
rawData
is empty ornull
.- ArgumentNullException
messageSerializer
isnull
.- 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
stringThe serialized raw data.
knownTypes
IEnumerable<Type>A list of known message types.
Returns
- IInterAppCall
An inter-app call.
Exceptions
- ArgumentNullException
rawData
is empty ornull
.- ArgumentNullException
knownTypes
isnull
.- ArgumentException
Format of
rawData
is invalid and deserialization failed.