NetMQ.ReceivingSocketExtensions.ReceiveMessages C# (CSharp) Method

ReceiveMessages() private method

private ReceiveMessages ( [ socket, int expectedFrameCount = 4 ) : List
socket [
expectedFrameCount int
return List
        public static List<byte[]> ReceiveMessages([NotNull] this IReceivingSocket socket, int expectedFrameCount = 4)
        {
            var frames = new List<byte[]>(capacity: expectedFrameCount);

            bool hasMore = true;

            while (hasMore)
                frames.Add(socket.Receive(false, out hasMore));

            return frames;
        }