Inheritance: System.EventArgs
Example #1
0
 public virtual void onConnectionLost(ConnectionLostEvent e)
 {
     if (ConnectionLost != null)
     {
         ConnectionLost(this, e);
     }
 }
Example #2
0
        internal static ConnectionLostEvent FromNative(
            ADLConnectionLostEvent connLostEvnt)
        {
            ConnectionLostEvent result = new ConnectionLostEvent();

            result._scopeId       = connLostEvnt.scopeId.body;
            result._errCode       = connLostEvnt.errCode;
            result._errMessage    = connLostEvnt.errMessage.body;
            result._willReconnect = connLostEvnt.willReconnect;
            return(result);
        }
Example #3
0
 private void on_connection_lost_callback_t(IntPtr opaque,
                                            ref ADLConnectionLostEvent e)
 {
     try
     {
         if (_listener != null)
         {
             _listener.onConnectionLost(
                 ConnectionLostEvent.FromNative(e));
         }
     }
     catch (Exception)
     {
     }
 }
Example #4
0
 public virtual void onConnectionLost(ConnectionLostEvent e)
 {
 }
 internal static ConnectionLostEvent FromNative(
     ADLConnectionLostEvent connLostEvnt)
 {
     ConnectionLostEvent result = new ConnectionLostEvent();
     result._scopeId = connLostEvnt.scopeId.body;
     result._errCode = connLostEvnt.errCode;
     result._errMessage = connLostEvnt.errMessage.body;
     result._willReconnect = connLostEvnt.willReconnect;
     return result;
 }
 public virtual void onConnectionLost(ConnectionLostEvent e)
 {
 }
 public virtual void onConnectionLost(ConnectionLostEvent e)
 {
     if (ConnectionLost != null)
         ConnectionLost(this, e);
 }