private static Stream Assemble(Assembler component, Stream inputDocument) { SendPipelineWrapper pipeline = Pipelines.Send() .WithAssembler(component); IBaseMessage output = pipeline.Execute( MessageHelper.CreateFromStream(inputDocument) ); return(output.BodyPart.GetOriginalDataStream()); }
/// <summary> /// Creates a new XMLTransmit pipeline /// </summary> /// <returns>The Pipeline Builder instance</returns> public SendPipelineBuilder Send() { return(Pipelines.Send <XMLTransmit>()); }