public static Task <R> Call <T, R>(this ClientMessagePipe sender, T message) { var send = GetNewTaskCompletionSource <R>(); sender.SendMessage(new ComData() { SequenceId = send.Item1, Content = message }); return(send.Item2); }
public static void Receive(this ClientMessagePipe sender, ComData message) { sender.SendMessage(message); }