Table of Contents

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 IConnection

The SLNet connection to use.

dataMinerId int

The DataMiner Agent ID of the remote parameter.

elementId int

The element ID of the remote parameter.

parameterId int

The parameter ID of the remote parameter.

serializer ISerializer

Serializer 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 IConnection

The SLNet connection to use.

dataMinerId int

The DataMiner Agent ID of the remote parameter.

elementId int

The element ID of the remote parameter.

parameterId int

The 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.