/// <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; }
/// <summary> /// Decompresses the Attachments that are part of this AS4 Message. /// </summary> public void DecompressAttachments() { CompressStrategy .ForAS4Message(this) .Decompress(); }