protected override void ExecuteCore(Agents.Net.Message messageData) { Contract.Requires(messageData != null, nameof(messageData) + " != null"); if (messageData.TryGet(out SendMessageRequestedMessage requestedMessage)) { SendMessage(requestedMessage); requestedMessage.Consumed(); } else { connectCollector.Push(messageData); } }