Example #1
0
        /// <summary>
        /// Compresses the Attachments that are part of this AS4 Message and
        /// modifies the Payload-info in the UserMessage to indicate that the attachment
        /// is compressed.
        /// </summary>
        public void CompressAttachments()
        {
            CompressStrategy
            .ForAS4Message(this)
            .Compress();

            // Since the headers in the message have changed, the EnvelopeDocument
            // is no longer in sync and should be set to null.
            EnvelopeDocument = null;
        }
Example #2
0
 /// <summary>
 /// Decompresses the Attachments that are part of this AS4 Message.
 /// </summary>
 public void DecompressAttachments()
 {
     CompressStrategy
     .ForAS4Message(this)
     .Decompress();
 }