Exemplo n.º 1
0
        public ReactingObject()
        {
            bpa = new BinaryPayloadA()
            {
                A = 1,
                B = 2,
                C = 3,
                D = 4,
                E = 5,
                F = 6,
                G = 7,
                H = Enumerable.Range(0, 100).Select(i => (double)i).ToArray(),
                I = "Test string"
            };

            ppa = new ProtobufPayloadA()
            {
                A = 1,
                B = 2,
                C = 3,
                D = 4,
                E = 5,
                F = 6,
                G = 7,
                H = Enumerable.Range(0, 100).Select(i => (double)i).ToArray(),
                I = "Test string"
            };

            bpb = new BinaryPayloadB()
            {
                A = Enumerable.Range(0, 100).Select(i => (byte)i).ToArray(),
                B = Enumerable.Range(0, 100).Select(i => i).ToArray(),
                C = Enumerable.Range(0, 100).Select(i => (double)i).ToArray(),
                D = "Some text"
            };

            ppb = new ProtobufPayloadB()
            {
                A = Enumerable.Range(0, 100).Select(i => (byte)i).ToArray(),
                B = Enumerable.Range(0, 100).Select(i => i).ToArray(),
                C = Enumerable.Range(0, 100).Select(i => (double)i).ToArray(),
                D = "Some text"
            };
        }
Exemplo n.º 2
0
        public static void GenerateRandomData(out BinaryPayloadA bpa, out BinaryPayloadB bpb, out ProtobufPayloadA ppa, out ProtobufPayloadB ppb)
        {
            bpa = new BinaryPayloadA()
            {
                A = 1,
                B = 2,
                C = 3,
                D = 4,
                E = 5,
                F = 6,
                G = 7,
                H = Enumerable.Range(0, 100).Select(i => (double)i).ToArray(),
                I = "Test string"
            };

            ppa = new ProtobufPayloadA()
            {
                A = 1,
                B = 2,
                C = 3,
                D = 4,
                E = 5,
                F = 6,
                G = 7,
                H = Enumerable.Range(0, 100).Select(i => (double)i).ToArray(),
                I = "Test string"
            };

            bpb = new BinaryPayloadB()
            {
                A = Enumerable.Range(0, 100).Select(i => (byte)i).ToArray(),
                B = Enumerable.Range(0, 100).Select(i => i).ToArray(),
                C = Enumerable.Range(0, 100).Select(i => (double)i).ToArray(),
                D = "Some text"
            };

            ppb = new ProtobufPayloadB()
            {
                A = Enumerable.Range(0, 100).Select(i => (byte)i).ToArray(),
                B = Enumerable.Range(0, 100).Select(i => i).ToArray(),
                C = Enumerable.Range(0, 100).Select(i => (double)i).ToArray(),
                D = "Some text"
            };
        }
Exemplo n.º 3
0
 public ProtobufPayloadB Method2(ProtobufPayloadA ppa)
 {
     return(ppb);
 }