private void TimerCallBackMethod(object state) { if (checkingNewAdvertsFinished) { if (appsettings.ChatDisabled || chatHubServiceInstance.IsConnected() || timerTick == 7) //timerTick == 7 == 35 sec { MessengerService.RemoveOutsidePendingWork(); timer.Dispose(); _wakeLock.Release(); } } timerTick++; }