Re: How to determine if one-way or two-way in pipeline

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello Tomas,

I don't remember seeing those in the context. Eitherway, neither indicates
whether the operation was one-way. They seem to identify the
communication-direction and not the communication-pattern.

thanks,
craig

"Tomas Restrepo (MVP)" <tomasr@xxxxxxxx> wrote in message
news:Obu$4anJGHA.1728@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Craig,
>
>>I need to know in a PipelineComponent if a message came from a one-way or
>>two-way port (adapter). What is the best way to achieve this? Currently,
>>I check for the presence of a CorrelationToken in the Message Context, but
>>that seems like a hack.
>
> I haven't tested it, but I think the correct properties to check would be
> either BTS.IsSolicitResponse and BTS.IsRequestResponse (which for some
> reason are undocumented).
>
> I do know for sure that the CorrelationToken property might get set in
> one-way scenarios. For example, the HTTP Receive adapter will fill it in
> OneWay scenarios if it is configured to returned the correlation token to
> the poster.
>
>
> --
> Tomas Restrepo
> tomasr@xxxxxxxx
> http://www.winterdom.com/
>


.



Relevant Pages