private void SendSweetTextMessage(object sender, ElapsedEventArgs e) { try { _timer.Enabled = false; _textMessageService.SendTextMessage(_sweetMessageService.GetNextMessage()); } catch (Exception ex) { _logsRepository.LogMessage("Failed to send message: " + ex.ToString()); } finally { _timer.Enabled = true; } }