Example #1
0
        public MessageTransaction(string mhId, string transactionId, string objectName, Database db)
        {
            this.db = db;
            Mapiin pkg = new Mapiin(this.db);

            mapiInId = "";

            // use calling procedure's transaction
            string ALMID_O = "";

            try
            {
                pkg.NewMapiIn(mhId, transactionId, objectName, ref mapiInId, ref ALMID_O);
            }
            catch (Exception e)
            {
                Exception ProcException = new Exception("Internal error calling NewMsgIn", e);
                throw (ProcException);
            }

            if (!String.IsNullOrEmpty(ALMID_O))
            {
                Exception e = new Exception(ALMID_O);
                throw (e);
            }

            transSeq = 1;
        }
Example #2
0
        public void Signal()
        {
            Mapiin pkg = new Mapiin(this.db);

            string ALMID_O = "";

            try
            {
                db.StartTransaction();
                pkg.SignalProcess("MAPIIn_01");
                db.Commit();
            }
            catch (Exception e)
            {
                Exception ProcException = new Exception("Internal error calling SignalProcess", e);
                throw (ProcException);
            }
        }