Method CreateFromRemote
- Assembly
- Skyline.DataMiner.Core.InterAppCalls.Common.dll
CreateFromRemote(IConnection, int, int, int, ISerializer)
Creates an inter-app call from the contents of the specified parameter.
public static IInterAppCall CreateFromRemote(IConnection connection, int agentId, int elementId, int parameterId, ISerializer serializer)
Parameters
connection
IConnectionThe raw SLNet connection.
agentId
intThe source DataMiner Agent ID.
elementId
intThe source element ID.
parameterId
intThe source parameter ID.
serializer
ISerializerSerializer to use.
Returns
- IInterAppCall
An inter-app call.
Exceptions
- ArgumentNullException
connection
orserializer
isnull
.- ArgumentException
The format of the content of the specified parameter is invalid and deserialization failed.
CreateFromRemote(IConnection, int, int, int, IEnumerable<Type>)
Creates an inter-app call from the contents of the specified parameter.
public static IInterAppCall CreateFromRemote(IConnection connection, int agentId, int elementId, int parameterId, IEnumerable<Type> knownTypes)
Parameters
connection
IConnectionThe raw SLNet connection.
agentId
intThe source DataMiner Agent ID.
elementId
intThe source element ID.
parameterId
intThe source parameter ID.
knownTypes
IEnumerable<Type>A list of known message types.
Returns
- IInterAppCall
An inter-app call.
Exceptions
- ArgumentException
The format of the content of the specified parameter is invalid and deserialization failed.
- ArgumentNullException
connection
orknownTypes
isnull
.