示例#1
0
        public void CombineStreamPair_TestReadWriteMessage(LengthPrefixStyle lps)
        {
            Stream a = null, b = null;

            try
            {
                MakeTcpStreamPair(out a, out b);
                using (var stream = MessageStream.Combine(new MessageReader(a, true, lps), new MessageWriter(b, true, lps)))
                {
                    SubtestReadWriteMessage(stream, lps, () => {});
                }
            }
            finally
            {
                a?.Dispose();
                b?.Dispose();
            }
        }