예제 #1
0
 private InArgument <CorrelationHandle> GetReplyHandleFromSend()
 {
     if (this.Request != null)
     {
         foreach (CorrelationInitializer initializer in this.Request.CorrelationInitializers)
         {
             RequestReplyCorrelationInitializer initializer2 = initializer as RequestReplyCorrelationInitializer;
             if ((initializer2 != null) && (initializer2.CorrelationHandle != null))
             {
                 return(initializer2.CorrelationHandle);
             }
         }
     }
     return(null);
 }
예제 #2
0
        InArgument <CorrelationHandle> GetReplyHandleFromReceive()
        {
            if (this.Request != null)
            {
                //if the user has set AdditionalCorrelations, then we need to first look for requestReply Handle there
                foreach (CorrelationInitializer correlation in this.Request.CorrelationInitializers)
                {
                    RequestReplyCorrelationInitializer requestReplyCorrelation = correlation as RequestReplyCorrelationInitializer;

                    if (requestReplyCorrelation != null && requestReplyCorrelation.CorrelationHandle != null)
                    {
                        return(requestReplyCorrelation.CorrelationHandle);
                    }
                }
            }
            return(null);
        }