Beispiel #1
0
 public static int Insert(MessageQueueRow row)
 {
     lock (locker)
     {
         return(me.Insert(row as object));
     }
 }
Beispiel #2
0
 public static int Update(MessageQueueRow row)
 {
     lock (locker)
     {
         return(me.Update(row as object));
     }
 }
Beispiel #3
0
        public static void Push(object Message)
        {
            try {
                SessionLog.StartPerformance("Push");

                Truncate();

                var msg = new MessageQueueRow();
                msg.MessageType       = Message.GetType().Name;
                msg.IsClientIncomming = false;
                msg.Created           = DateTime.Now;
                msg.Message           = Serialize(Message);

                MessageQueueDB.Insert(msg);

                StartPump();
            } catch (Exception ex) {
                ReportQueueException(ex);
            }
        }
Beispiel #4
0
 private void DeleteObject <T>(MessageQueueRow row)
 {
     me.Delete <MessageQueueRow>(row.Id);
 }