NodeBaseExecuteInner Method

Executes the custom logic for this type of node. The node must end when all exit ports have been properly filled in.

Definition

Namespace: MobileTrack.EventHandler.NodeHandlers
Assembly: MobileTrack.EventHandler (in MobileTrack.EventHandler.exe) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
protected abstract Task ExecuteInner(
	CancellationToken stoppingToken
)

Parameters

stoppingToken  CancellationToken
Cancellation token

Return Value

Task
Task execution.

Remarks

The following rules apply when running a node:
  • Valid input from ports – The input provided by the ports must already be in a valid state; for example,
    if we want an EnvironmentDto, it shouldn't provide us with its Guid ID. Or be .
  • Ensure expected behavior happens, throw Exceptions otherwise. – Note it says expected, not valid behavior. If the behavior is invalid
    (say, a third party API having an outage or providing us a non-OK status result) it is still an expected result.
    However, trying to retrieve an EnvironmentDto from the database and receiving is unexpected. The difference is that the former we can anticipate for and handle as it is an event that can happen,
    the latter we cannot handle as it is an event that should never happen.

See Also