public bool EndTryReceive(IAsyncResult result, out Message message) { try { message = Tap.Complete <Message>(result); return(true); } catch (TimeoutException) { message = null; return(false); } }
public Message EndReceive(IAsyncResult result) => Tap.Complete <Message>(result);
protected override void OnEndOpen(IAsyncResult result) => Tap.Complete(result);
public void EndSend(IAsyncResult result) => Tap.Complete(result);
protected override IDuplexSessionChannel OnEndAcceptChannel(IAsyncResult result) => Tap.Complete <IDuplexSessionChannel>(result);