Exemplo n.º 1
0
 //List<ScriptSnapshot> MyScriptTableList;
 //Dictionary<string, Guid> SnapShotGuids;
 public bool Init()
 {
     if (!mIsInitStarted)
     {
         mIsInitStarted = true;
         MyBaseThing.RegisterEvent(eEngineEvents.IncomingMessage, HandleMessage);
         mIsInitCompleted = true;
         MyBaseEngine.ProcessInitialized();
         MyBaseThing.SetStatus(4, "Waiting for other services before running scripts");
         TheBaseEngine.WaitForEnginesStarted(OnEnginesStarted);
         SetupStorageMirror();
     }
     return(true);
 }
Exemplo n.º 2
0
 public virtual bool Init()
 {
     IsConnected = false;
     MyBaseThing.SetStatus(4, "Initializing.");
     TheThing.SetSafePropertyString(MyBaseThing, "StateSensorIcon", "/Images/iconToplogo.png");
     this.GetProperty(nameof(IsConnected), true).RegisterEvent(eThingEvents.PropertyChanged, sinkPropChanged);
     MyBaseThing.SetPublishThrottle(500);
     return(true);
 }