Method CreateFromRemoteAndAcceptMessage
- Assembly
- Skyline.DataMiner.Core.InterAppCalls.Common.dll
CreateFromRemoteAndAcceptMessage(IConnection, int, int, int, ISerializer, ISerializer)
Creates an inter-app call from the contents of the specified parameter.
public static IInterAppCall CreateFromRemoteAndAcceptMessage(IConnection connection, int agentId, int elementId, int parameterId, ISerializer interAppSerializer, ISerializer messageSerializer)
Parameters
connection
IConnectionThe raw SLNet connection.
agentId
intThe source DataMiner Agent ID.
elementId
intThe source element ID.
parameterId
intThe source parameter ID.
interAppSerializer
ISerializerSerializer to use for InterAppCall.
messageSerializer
ISerializerSerializer to use for Message.
Returns
- IInterAppCall
An inter-app call.
Exceptions
- ArgumentNullException
connection
orinterAppSerializer
ormessageSerializer
isnull
.- ArgumentException
The format of the content of the specified parameter is invalid and deserialization failed.
CreateFromRemoteAndAcceptMessage(IConnection, int, int, int, IEnumerable<Type>)
Creates an inter-app call from the contents of the specified parameter.
public static IInterAppCall CreateFromRemoteAndAcceptMessage(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
- ArgumentNullException
connection
orknownTypes
isnull
.- ArgumentException
The format of the content of the specified parameter is invalid and deserialization failed.