Example #1
0
        internal static void setMessageStatus(Message message, MandrillResponse response)
        {
            var messageStatus = new MessageStatus() { Message = message };

            switch (response.status)
            {
                case "sent":
                    messageStatus.status = "SENT";
                    break;
                case "queued":
                    messageStatus.status = "QUEUED";
                    break;
                default:
                    messageStatus.status = "FAILED";
                    break;
            }

            setMessage(messageStatus);
        }
Example #2
0
 internal static void setMessageFailed(Message message)
 {
     var messageStatus = new MessageStatus {Message = message, status = "FAILED"};
     setMessage(messageStatus);
 }
Example #3
0
 internal static void setMessage(MessageStatus messageStatus)
 {
     var connstr = Config.Instance.dbConn;
     var orm = new Orm(new MSSQLData(connstr));
     orm.execObject<Result>(messageStatus, "mess.set_message_status");
 }