/// <summary> /// Stops the Data capture process and the triggered job /// </summary> protected override void OnSleep() { //stop capturing and add the data into the cache //Stop Capturing and save the data here. Test is successfull //Kill the scheduled thread to save the data in a sensorService.DisposeAll(); triggered.Stop(); }