public void OnOutgoing(string msg) { lock (sync_) { file_.WriteLine("<outgoing> " + msg); file_.Flush(); } }