public async Task <byte[]> RequestAsync(byte[] data) { if (!_channel.Connected) { await _channel.ConnectAsync(); } _tcs = new TaskCompletionSource <ReceiveContext>(); await _channel.SendAsync(data); return((await _tcs.Task).Payload); }