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
dataSourceobjectA source used during DataGets, usually SLProtocol or Engine.
dataDestinationobjectA destination used during DataSets, usually SLProtocol or Engine.
messageToExecutorMappingIDictionary<Type, Type>A mapping to link message type with the right execution type.
optionalReturnMessageMessageThe reply message that might get created.
Returns
- bool
A boolean to indicate if the execution was successful.
Exceptions
- ArgumentNullException
messageToExecutorMappingisnull.- AmbiguousMatchException
Unable to find executor for this type of message.