static ProtoChannelTestClient()
            {
                _complexMessage = new ComplexMessage();

                for (int i = 0; i < 200; i++)
                {
                    _complexMessage.Values.Add(new ComplexValue
                    {
                        IntValue = i,
                        DoubleValue = i,
                        StringValue = i.ToString()
                    });
                }

                _smallStreamContent = Encoding.UTF8.GetBytes(new string('x', 0x1000));
                _largeStreamContent = Encoding.UTF8.GetBytes(new string('x', 0x100000));
            }
예제 #2
0
 public ComplexMessage ComplexMessage(ComplexMessage message)
 {
     return message;
 }