Method CreateFromRemote
- Namespace
- Skyline.DataMiner.Core.InterAppCalls.Common.CallSingle
- Assembly
- Skyline.DataMiner.Core.InterAppCalls.Common.dll
CreateFromRemote(IConnection, int, int, int, ISerializer)
Creates a message from the content of a remote parameter. The value of this parameter should contain a serialized message created with the InterAppSerializer.
public static Message CreateFromRemote(IConnection connection, int dataMinerId, int elementId, int parameterId, ISerializer serializer)
Parameters
connection
IConnectionThe SLNet connection to use.
dataMinerId
intThe DataMiner Agent ID of the remote parameter.
elementId
intThe element ID of the remote parameter.
parameterId
intThe parameter ID of the remote parameter.
serializer
ISerializerSerializer to use.
Returns
- Message
The deserialized message.
Exceptions
- ArgumentException
The format of the content of the specified parameter is invalid and deserialization failed.
CreateFromRemote(IConnection, int, int, int, IEnumerable<Type>)
Creates a message from the content of a remote parameter. The value of this parameter should contain a serialized message created with the InterAppSerializer.
public static Message CreateFromRemote(IConnection connection, int dataMinerId, int elementId, int parameterId, IEnumerable<Type> knownTypes)
Parameters
connection
IConnectionThe SLNet connection to use.
dataMinerId
intThe DataMiner Agent ID of the remote parameter.
elementId
intThe element ID of the remote parameter.
parameterId
intThe parameter ID of the remote parameter.
knownTypes
IEnumerable<Type>List of all possible message types.
Returns
- Message
The deserialized message.
Exceptions
- ArgumentException
The format of the content of the specified parameter is invalid and deserialization failed.