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