Method Send
- Assembly
- Skyline.DataMiner.Core.InterAppCalls.Common.dll
Send(IConnection, int, int, int, IEnumerable<Type>)
Sends this call via SLNet to the specified DataMiner Agent ID/element ID/parameter ID without waiting on a reply.
void Send(IConnection connection, int agentId, int elementId, int parameterId, IEnumerable<Type> knownTypes)
Parameters
connectionIConnectionThe SLNet connection to use.
agentIdintDataMiner Agent ID of the destination.
elementIdintElement ID of the destination.
parameterIdintParameter ID of the destination.
knownTypesIEnumerable<Type>List of all possible message classes. Needed for the default serializer.
Exceptions
- ArgumentNullException
connectionorknownTypesisnull.- ArgumentException
agentIdorelementIdorparameterIdis invalid.- InvalidOperationException
The state of the specified element is not "Active".
Send(IConnection, int, int, int, TimeSpan, IEnumerable<Type>, bool)
Sends this call via SLNet to the specific DataMiner Agent ID/element ID/parameter ID and waits until timeout for a single reply for each message.
IEnumerable<Message> Send(IConnection connection, int agentId, int elementId, int parameterId, TimeSpan timeout, IEnumerable<Type> knownTypes, bool allowBroker = true)
Parameters
connectionIConnectionThe SLNet connection to use.
agentIdintDataMiner Agent ID of the destination.
elementIdintElement ID of the destination.
parameterIdintParameter ID of the destination.
timeoutTimeSpanMaximum time to wait between received replies. Resets each time a reply is received.
knownTypesIEnumerable<Type>List of all possible message classes. Needed for the default serializer.
allowBrokerbool(Optional) A boolean value indicating whether to allow replies via the broker. Messages replied via the broker have lower latency, but are limited in length, See MaxMessageSize. Default is
true.
Returns
- IEnumerable<Message>
The responses.
Exceptions
- ArgumentNullException
connectionorknownTypesisnull.- ArgumentException
agentIdorelementIdorparameterIdis invalid.- ArgumentOutOfRangeException
timeoutis negative.- InvalidOperationException
The state of the specified element is not "Active".
- InvalidOperationException
ReturnAddress is not optional (see ReturnAddress).
- TimeoutException
One or more replies did not arrive within the specified
timeout.
Send(IConnection, int, int, int, ISerializer)
Sends this call via SLNet to the specified DataMiner Agent ID/element ID/parameter ID without waiting on a reply.
void Send(IConnection connection, int agentId, int elementId, int parameterId, ISerializer serializer)
Parameters
connectionIConnectionThe SLNet connection to use.
agentIdintDataMiner Agent ID of the destination.
elementIdintElement ID of the destination.
parameterIdintParameter ID of the destination.
serializerISerializerA custom serializer to be used internally.
Exceptions
- ArgumentNullException
connectionorserializerisnull.- ArgumentException
agentIdorelementIdorparameterIdis invalid.- InvalidOperationException
The state of the specified element is not "Active".
Send(IConnection, int, int, int, TimeSpan, ISerializer, bool)
Sends this call via SLNet to the specific DataMiner Agent ID/element ID/parameter ID and waits until timeout for a single reply for each message.
IEnumerable<Message> Send(IConnection connection, int agentId, int elementId, int parameterId, TimeSpan timeout, ISerializer serializer, bool allowBroker = true)
Parameters
connectionIConnectionThe SLNet connection to use.
agentIdintDataMiner Agent ID of the destination.
elementIdintElement ID of the destination.
parameterIdintParameter ID of the destination.
timeoutTimeSpanMaximum time to wait between received replies. Resets each time a reply is received.
serializerISerializerA custom serializer to be used internally.
allowBrokerbool(Optional) A boolean value indicating whether to allow replies via the broker. Messages replied via the broker have lower latency, but are limited in length, See MaxMessageSize. Default is
true.
Returns
- IEnumerable<Message>
The responses.
Exceptions
- ArgumentNullException
connectionorserializerisnull.- ArgumentException
agentIdorelementIdorparameterIdis invalid.- ArgumentOutOfRangeException
timeoutis negative.- InvalidOperationException
The state of the specified element is not "Active".
- InvalidOperationException
ReturnAddress is not optional (see ReturnAddress).
- TimeoutException
One or more replies did not arrive within the specified
timeout.