Method CreateInterAppSerializer
- Namespace
- Skyline.DataMiner.Core.InterAppCalls.Common.Serializing
- Assembly
- Skyline.DataMiner.Core.InterAppCalls.Common.dll
CreateInterAppSerializer(IEnumerable<Type>)
Creates a serializer specifically for use by the InterApp module.
public static ISerializer CreateInterAppSerializer(IEnumerable<Type> knownTypes)
Parameters
knownTypesIEnumerable<Type>All possible custom types present in the message.
Returns
- ISerializer
An instance of type ISerializer.
Exceptions
- ArgumentNullException
knownTypesisnull.
CreateInterAppSerializer(Type, IEnumerable<Type>)
Creates a serializer specifically for use by the InterApp module.
public static ISerializer CreateInterAppSerializer(Type baseType, IEnumerable<Type> knownTypes)
Parameters
baseTypeTypeThe type of the base class to serialize or deserialize.
knownTypesIEnumerable<Type>All possible custom types present in the message.
Returns
- ISerializer
An instance of type ISerializer.
Exceptions
- ArgumentNullException
knownTypesisnull.