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
connectionIConnectionThe raw SLNet connection.
agentIdintThe source DataMiner Agent ID.
elementIdintThe source element ID.
parameterIdintThe source parameter ID.
interAppSerializerISerializerSerializer to use for InterAppCall.
messageSerializerISerializerSerializer to use for Message.
Returns
- IInterAppCall
An inter-app call.
Exceptions
- ArgumentNullException
connectionorinterAppSerializerormessageSerializerisnull.- 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
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
- ArgumentNullException
connectionorknownTypesisnull.- ArgumentException
The format of the content of the specified parameter is invalid and deserialization failed.