protected bool TryReceiveMultipartBytes(out List <byte[]> frames, int expectedFrameCount) { frames = new List <byte[]>(); if (Socket.TryReceiveMultipartBytes(SendReceiveTimeout, ref frames, expectedFrameCount)) { return(true); } else { HandleError(new ReceiveTimeoutException()); return(false); } }