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
connectionIConnectionThe SLNet connection to use.
dataMinerIdintThe DataMiner Agent ID of the remote parameter.
elementIdintThe element ID of the remote parameter.
parameterIdintThe parameter ID of the remote parameter.
serializerISerializerSerializer 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
connectionIConnectionThe SLNet connection to use.
dataMinerIdintThe DataMiner Agent ID of the remote parameter.
elementIdintThe element ID of the remote parameter.
parameterIdintThe parameter ID of the remote parameter.
knownTypesIEnumerable<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.