Ejemplo n.º 1
0
        /// <summary>
        /// Store the EAnp event specified.
        /// </summary>
        public void StoreEAnpEvent(UInt64 kwsID, AnpMsg msg)
        {
            try
            {
                DbCommand cmd = m_db.GetCmd("INSERT INTO eanp_events (kws_id, evt_id, evt_data) VALUES (?, ?, ?);");
                m_db.AddParamToCmd(cmd, kwsID);
                m_db.AddParamToCmd(cmd, msg.ID);
                m_db.AddParamToCmd(cmd, msg.ToByteArray(true));
                cmd.ExecuteNonQuery();
            }

            catch (Exception ex)
            {
                KBase.HandleException(ex, true);
            }
        }