public bool EndTryReceiveRequest(IAsyncResult result,
                                         out RequestContext context)
        {
            bool requestAvailable =
                innerReplySessionChannel.EndTryReceiveRequest(result, out context);

            if (requestAvailable && context != null)
            {
                ReadAndAddContextIdToMessage(context.RequestMessage);
            }

            return(requestAvailable);
        }
示例#2
0
 protected override void EndTryReceiveItem(IReplySessionChannel channel, IAsyncResult result, out RequestContext item)
 {
     channel.EndTryReceiveRequest(result, out item);
 }