private void OnTransportReceived(TransportProtocol protocol, Dictionary<string, string> header, ArraySegment<byte> body) { DebugUtils.DebugLog("OnTransportReceived invoked."); last_received_ = DateTime.Now; lock (message_lock_) { message_buffer_.Add(new KeyValuePair<TransportProtocol, ArraySegment<byte>>(protocol, body)); } }