Пример #1
0
 public static void DeleteLockedMessage(int messageId)
 {
     using (QueueDBWriteInterface db = new QueueDBWriteInterface())
     {
             db.DeleteLockedMessage(messageId);
     }
 }
Пример #2
0
        public static int SaveMessage(Message message)
        {
            int result;
            using (QueueDBWriteInterface db = new QueueDBWriteInterface())
            {
                result = db.SaveMessage(message);
            }

            return result;
        }
Пример #3
0
        public static int ClearExpiredLocks()
        {
            int result;
            using (QueueDBWriteInterface db = new QueueDBWriteInterface())
            {
                result = db.ClearExpiredLocks();
            }

            return result;
        }
Пример #4
0
        /// <summary>
        /// Locks the top message
        /// </summary>
        /// <returns></returns>
        public static Message GetLockTopMessage()
        {
            Message result;

            using (QueueDBWriteInterface db = new QueueDBWriteInterface())
            {
                result = db.GetLockTopMessage();
            }

            return result;
        }