public void BeginReceive(ReceivedDataCallback callback) { Receive += callback; foreach (var msg in UnreadMessages.DequeueAll()) { NetworkEventLoop.Receive(msg, this); } BeginReceiveInternal(); }