protected override RequestContext EndReceiveRequest(IAsyncResult result) { RequestContext requestContext; _returnValue = _innerChannel.EndTryReceiveRequest(result, out requestContext); return(requestContext); }
public override bool EndTryReceiveRequest (IAsyncResult result, out RequestContext context) { if (inner.EndTryReceiveRequest (result, out context)) { context = Inspect (context); return true; } context = null; return false; }
public bool EndTryReceiveRequest(IAsyncResult result, out RequestContext context) { _innerChannel.EndTryReceiveRequest(result, out context); var timeout = ((IDefaultCommunicationTimeouts)this.Manager).ReceiveTimeout; context = ProcessContext(context, timeout); return(context != null); }
public bool EndTryReceiveRequest(IAsyncResult result, out RequestContext context) { var retVal = _innerChannel.EndTryReceiveRequest(result, out context); if (retVal && context is not null) { context = WrapRequestContext(context); } return(retVal); }
public bool EndTryReceiveRequest(IAsyncResult result, out RequestContext context) { bool requestAvailable = innerReplyChannel.EndTryReceiveRequest(result, out context); if (requestAvailable) { // Read the context id from the incoming message. ReadContextId(context.RequestMessage); } return(requestAvailable); }
internal Task <Tuple <bool, RequestContext> > TryReceiveRequestCoreAsync(TimeSpan timeout) { var tcs = new TaskCompletionSource <Tuple <bool, RequestContext> >(); _innerChannel.BeginTryReceiveRequest(timeout, ar => { var _tcs = ar.AsyncState as TaskCompletionSource <Tuple <bool, RequestContext> >; bool result; RequestContext context; try { result = _innerChannel.EndTryReceiveRequest(ar, out context); _tcs.TrySetResult(Tuple.Create(result, context)); } catch (Exception e) { _tcs.TrySetException(e); } }, tcs); return(tcs.Task); }
public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) { return(_channel.EndTryReceiveRequest(result, out requestContext)); }
protected override void EndTryReceiveItem(IReplyChannel channel, IAsyncResult result, out RequestContext item) { channel.EndTryReceiveRequest(result, out item); }
public virtual bool EndTryReceiveRequest(IAsyncResult result, out RequestContext context) { return(inner.EndTryReceiveRequest(result, out context)); }
public bool EndTryReceiveRequest(System.IAsyncResult result, out RequestContext context) { Console.WriteLine("MyReplyChannel.EndTryReceiveRequest()"); return(InnerChannel.EndTryReceiveRequest(result, out context)); }