public void endSend(object p) { mActionManager = null; TimerServices.unregisterInTimer50(mHandlerReadLiveData); TimerServices.unregisterInTimer100(mHandlerSendToVIZ); }
public IHttpActionResult Get() { try { TimerServices.SendPushToAllNotes(); return(Content(HttpStatusCode.OK, "Notifications has been sent successfully!")); } catch (Exception ex) { return(Content(HttpStatusCode.BadRequest, ex)); } }
// ------------------------------------------------------------------------------------------------------------------ public ServiceAnchorInfo(InfoData pTheInfo, int dataFrameRate, IActionManager actionManager, RenderEngine.IRenderEngine renderEngine, IComputerVisionManager cvManager) { int iDelay = 1000 / dataFrameRate; mHandlerReadLiveData = new HandlerReadLiveData(this); mHandlerSendToVIZ = new HandlerSendToVIZ(this); mActionManager = actionManager; mTheInfo = pTheInfo; mRenderEngine = renderEngine; mcvManager = cvManager; TimerServices.registerInTimer50(mHandlerReadLiveData); TimerServices.registerInTimer100(mHandlerSendToVIZ); }
//code for timer private void timer_Tick(object sender, ElapsedEventArgs e) { //SEND Every day a push notification about the todays notes TimerServices.SendPushToAllNotes(); }