Table of Contents

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 object

A source used during DataGets, usually SLProtocol or Engine.

dataDestination object

A destination used during DataSets, usually SLProtocol or Engine.

messageToExecutorMapping IDictionary<Type, Type>

A mapping to link message type with the right execution type.

optionalReturnMessage Message

The reply message that might get created.

Returns

bool

A boolean to indicate if the execution was successful.

Exceptions

ArgumentNullException

messageToExecutorMapping is null.

AmbiguousMatchException

Unable to find executor for this type of message.