//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; }
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); }