private void OnConnecting(InstanceEventArgs e) { var handler = Connecting; if (handler != null) handler(this, e); }