Delegate TimerHandler
- Namespace
- Scaleout.Streaming.DigitalTwin.Core
- Assembly
- ScaleOut.Streaming.DigitalTwin.Core.dll
Digital twin timer delegate. Must be assigned to either a public static method or a class instance method.
public delegate ProcessingResult TimerHandler(string timerName, DigitalTwinBase instance, ProcessingContext context)
Parameters
timerName
stringThe timer name.
instance
DigitalTwinBaseThe target digital twin object.
context
ProcessingContextThe digital twin message processing context.
Returns
- ProcessingResult
Return DoUpdate to indicate that the digital twin object data was modified so the digital twin needs to be saved. Return NoUpdate if the twin object was not modified and does not need to be saved.
Remarks
Each digital twin instance can have up to 5 timers that can be started via the StartTimer(string, TimeSpan, TimerType, TimerHandler) method call.