Ejemplo n.º 1
0
        static void SendTest3(Test3InCommand cmd, MessageHeader header, Int64 index)
        {
            var msg    = new Message <Test3InCommand>(cmd, header);
            var result = client.Send <Test3InCommand, Test3OutCommand>(msg);

            if (!result.IsSuccess)
            {
                Trace.WriteLine(result.Fail.ExceptionMessage);
                return;
            }

            Trace.WriteLine(index.ToString().PadLeft(3, '0') + "_" + DateTime.Now.ToString("HH:mm:ss") + ">> " + result.Body.ToString());
        }
Ejemplo n.º 2
0
        static void SendAsyncTest3(Test3InCommand cmd, MessageHeader header, Int64 index)
        {
            var msg = new Message <Test3InCommand>(cmd, header);

            client.SendAsync(msg);
        }