protected virtual void OnDataReceived(ConnectionDataEventArgs e) { var handler = DataReceived; if (handler != null) handler(this, e); }