internal static ConnectionLostEvent FromNative(
     CDOConnectionLostEvent connLostEvnt)
 {
     ConnectionLostEvent result = new ConnectionLostEvent();
     result._scopeId = connLostEvnt.scopeId.body;
     result._errCode = connLostEvnt.errCode;
     result._errMessage = connLostEvnt.errMessage.body;
     return result;
 }
 private void on_connection_lost_callback_t(IntPtr opaque,
     ref CDOConnectionLostEvent e)
 {
     try
     {
         if (_listener != null)
             _listener.onConnectionLost(
                 ConnectionLostEvent.FromNative(e));
     }
     catch (Exception )
     {
     }
 }