Receive Pipeline Component Stream
I was forced to consume the stream within a receive pipeline component to
access a promoted field, that being said what is the easiest and most
effecient way to return the stream pointer to where it was when it came in.
I am not changing any data or fields within the message, I simply want to
return what was sent in.
I am using the pipeline component after a flatfile disassemblingthen
accessing the promoted field, which I specify in the component properties.
Pretty straight foward but wanted to get people's oppinion with resetting a
non seekable stream hopefully without cloning the whole object.
Sample:
XmlTextReader xr = new XmlTextReader(inmsg.BodyPart.Data);
IBaseMessageContext context = inmsg.Context;
object obj = context.Read(_PromotedPropertyName, _PromotedNamespaceName);
|