예제 #1
0
        public static string sendIntMessage(MMCoreConnector.WRQueueManagement.mproxyIntegrationMessage mim, MMCoreConnector.WRQueueManagement.mailBoxAccountType mbat)
        {
            string res = "";

            MMCoreConnector.WRQueueManagement.mproxyOperationStatus mos = services.MMCoreServiceQueueManagement.sendMessage(mim, mbat);
            if (mos.operationResult.Equals(MMCoreConnector.WRQueueManagement.mproxyOperationResult.MPROXY_RESULT_FAILED))
            {
                throw new Exception("SEND Failed!");
            }
            res = mos.operationOutputValue;
            return(res);
        }
예제 #2
0
 private void deleteMessage(string accountId, string msgId)
 {
     MMCoreConnector.WRQueueManagement.mproxyOperationStatus s = services.MMCoreServiceQueueManagement.deleteIMessage(accountId, msgId, MMCoreConnector.WRQueueManagement.mailBoxType.INBOX);
     if (s.operationResult.Equals(MMCoreConnector.WRQueueManagement.mproxyOperationResult.MPROXY_RESULT_FAILED))
     {
         throw new Exception("DELETE FAILED from INBOX. ID " + msgId);
     }
     s = services.MMCoreServiceQueueManagement.deleteIMessage(accountId, msgId, MMCoreConnector.WRQueueManagement.mailBoxType.SENTBOX);
     if (s.operationResult.Equals(MMCoreConnector.WRQueueManagement.mproxyOperationResult.MPROXY_RESULT_FAILED))
     {
         throw new Exception("DELETE FAILED from SENTBOX ID " + msgId);
     }
 }