コード例 #1
0
 private void verifyNoError(string accountId, string msgId)
 {
     Console.WriteLine("CHECK for errors. SENT MSG ID: " + msgId);
     MMCoreConnector.WRQueueManagement.mproxyOperationStatusIMessage msintm = services.MMCoreServiceQueueManagement.getIMessageById(accountId, msgId, MMCoreConnector.WRQueueManagement.mailBoxType.SENTBOX);
     if (msintm.operationResult.Equals(MMCoreConnector.WRQueueManagement.mproxyOperationResult.MPROXY_RESULT_FAILED))
     {
         throw new Exception("Can't get the message: " + msgId + "   " + msintm.detailedInfo);
     }
     MMCoreConnector.WRQueueManagement.mproxyIntegrationMessage      mim = msintm.value[0];
     MMCoreConnector.WRQueueManagement.mproxyIntegrationMessageError err = mim.error;
     if (err != null)
     {
         throw new Exception("The message has an error:" + err.mproxyError + "; " + err.rootCause);
     }
     else
     {
         Console.WriteLine("The MESSAGE is OK (NO ERROR)");
     }
 }
コード例 #2
0
        private void fetchMessage(string accountId, string id)
        {
            MMCoreConnector.WRQueueManagement.mproxyIntegrationMessage      mim   = null;
            MMCoreConnector.WRQueueManagement.mproxyOperationStatusIMessage mosim = services.MMCoreServiceQueueManagement.getIMessageById(accountId, id, MMCoreConnector.WRQueueManagement.mailBoxType.INBOX);
            if (mosim.operationResult.Equals(MMCoreConnector.WRQueueManagement.mproxyOperationResult.MPROXY_RESULT_FAILED))
            {
                throw new Exception("getIMessageById Failed! ERR " + mosim.operationResult);
            }
            MMCoreConnector.WRQueueManagement.mproxyIntegrationMessage[] mims = mosim.value;
            mim = mims[0];

            if (mim != null)
            {
                MMCoreConnector.WRQueueManagement.mproxyAttachment[] ents = mim.mproxyAttachements;
                foreach (MMCoreConnector.WRQueueManagement.mproxyAttachment ent in ents)
                {
                    Console.WriteLine("ATT: " + ent.name);
                }
            }
        }