Class InitContext
- Namespace
- Scaleout.Streaming.DigitalTwin.Core
- Assembly
- ScaleOut.Streaming.DigitalTwin.Core.dll
Context object that provides operations that are available when a digital twin instance is being created.
public abstract class InitContext
- Inheritance
-
InitContext
- Inherited Members
Properties
SharedGlobalData
Gets an ISharedData instance for accessing objects that are shared globally between all models.
public abstract ISharedData SharedGlobalData { get; }
Property Value
SharedModelData
Gets an ISharedData instance for accessing shared objects that are associated with the model being processed.
public abstract ISharedData SharedModelData { get; }
Property Value
Methods
StartTimer(string, TimeSpan, TimerType, TimerHandler)
Starts a new timer for the digital twin being created.
public abstract TimerActionResult StartTimer(string timerName, TimeSpan interval, TimerType type, TimerHandler timerCallback)
Parameters
timerName
stringThe timer name.
interval
TimeSpanThe timer interval.
type
TimerTypeThe type of the timer.
timerCallback
TimerHandlerA delegate representing a user-defined timer callback static method to be executed.
Returns
- TimerActionResult
Success if the timer was started successfully, otherwise one of the following error codes is returned: FailedTooManyTimers when the maximum number of timers is reached or FailedInternalError if an error occurred during the method call.