protected override void SendEscalateMessage(IMessageItem escalatedMessage) { escalatedMessage.CommitReplyTo(); using (MemorySubmissionItem memorySubmissionItem = new MemorySubmissionItem((MessageItem)escalatedMessage, this.mbxTransportMailItem.OrganizationId)) { memorySubmissionItem.Submit(MessageTrackingSource.AGENT, new MemorySubmissionItem.OnConvertedToTransportMailItemDelegate(this.TransportMailItemHandler), this.mbxTransportMailItem); } }
public void Send(string messageId, byte[] corelationBlob, MbxTransportMailItem mbxTransportMailItem) { this.messageItem.VotingInfo.MessageCorrelationBlob = corelationBlob; this.messageItem.ClassName = "IPM.Note.Microsoft.Approval.Request"; this.messageItem.InternetMessageId = messageId; this.messageItem.Save(SaveMode.NoConflictResolution); using (MemorySubmissionItem memorySubmissionItem = new MemorySubmissionItem(this.messageItem, this.organizationId)) { memorySubmissionItem.Submit(MessageTrackingSource.APPROVAL, new MemorySubmissionItem.OnConvertedToTransportMailItemDelegate(this.TransportMailItemHandler), mbxTransportMailItem); } }