Method CreateFromRaw
- Assembly
- Skyline.DataMiner.Core.InterAppCalls.Common.dll
CreateFromRaw(string, ISerializer)
Creates an inter-app call from the specified string.
public static IInterAppCall CreateFromRaw(string rawData, ISerializer serializer)
Parameters
rawData
stringThe serialized raw data.
serializer
ISerializerSerializer to use.
Returns
- IInterAppCall
An inter-app call.
Exceptions
- ArgumentNullException
rawData
is empty ornull
.- ArgumentNullException
serializer
isnull
.- ArgumentException
Format of
rawData
is invalid and deserialization failed.
CreateFromRaw(string, IEnumerable<Type>)
Creates an inter-app call from the specified string.
public static IInterAppCall CreateFromRaw(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.