예제 #1
0
        public IHttpActionResult EditMessage([FromBody] JObject request)
        {
            Message        msg         = request.ToObject <Message>();
            Repo <Message> messageRepo = new MessageRepo();

            messageRepo.Update(msg);
            return(Ok());
        }
예제 #2
0
        private void ProcessResends()
        {
            var resends = _msgRepo.GetResends(Execution.JobConfig);

            foreach (var msg in resends)
            {
                msg.ExecutionId = Execution.Id;
                Execution.ResendAttempts++;
                msg.SysStart = DateTime.Now;

                SendMail(msg);
                if (msg.Status != MessageStatus.Sent)
                {
                    Execution.ResendFails++;
                }

                _msgRepo.Update(msg, msg.Id);
            }
        }