Method TryExecute
- Namespace
- Skyline.DataMiner.Core.InterAppCalls.Common.CallSingle
- Assembly
- Skyline.DataMiner.Core.InterAppCalls.Common.dll
TryExecute(object, object, IDictionary<Type, Type>, out Message)
Tries to get the Executor and run the default execution flow.
public bool TryExecute(object dataSource, object dataDestination, IDictionary<Type, Type> messageToExecutorMapping, out Message optionalReturnMessage)
Parameters
dataSource
objectA source used during DataGets, usually SLProtocol or Engine.
dataDestination
objectA destination used during DataSets, usually SLProtocol or Engine.
messageToExecutorMapping
IDictionary<Type, Type>A mapping to link message type with the right execution type.
optionalReturnMessage
MessageThe reply message that might get created.
Returns
- bool
A boolean to indicate if the execution was successful.
Exceptions
- ArgumentNullException
messageToExecutorMapping
isnull
.- AmbiguousMatchException
Unable to find executor for this type of message.