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
connectionIConnectionThe raw SLNet connection.
agentIdintThe source DataMiner Agent ID.
elementIdintThe source element ID.
parameterIdintThe source parameter ID.
serializerISerializerSerializer to use.
Returns
- IInterAppCall
An inter-app call.
Exceptions
- ArgumentNullException
connectionorserializerisnull.- 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
connectionIConnectionThe raw SLNet connection.
agentIdintThe source DataMiner Agent ID.
elementIdintThe source element ID.
parameterIdintThe source parameter ID.
knownTypesIEnumerable<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
connectionorknownTypesisnull.