Beispiel #1
0
        //utility
        internal static message GetReciptMessage(message toAck)
        {
            var ackMessage = new message()
            {
                to = toAck.from,
                from = toAck.to
            };

            ackMessage.Add(new received() { id = toAck.id });

            return ackMessage;
        }
Beispiel #2
0
        public override void Execute(Tag data = null)
        {
            if (data != null && data is message)
            {
                var toAck = data as message;

                var ackMessage = new message()
                {
                    to = toAck.from,
                    from = toAck.to
                };

                ackMessage.Add(new received() { id = toAck.id });
                Manager.Connection.Send(ackMessage);
            }

            Manager.State = new RunningState(Manager);
        }