public static int Insert(MessageQueueRow row) { lock (locker) { return(me.Insert(row as object)); } }
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); } }