Example #1
0
 //Gets called when Filetransfer is completed.
 protected override void FileTransferCompleted(bool close, int id)
 {
     try
     {
         if (close)
         {
             Close();
         }
     }
     catch (SocketException se)
     {
         throw new SocketException(se.ErrorCode);
     }
     catch (ObjectDisposedException ode)
     {
         throw new ObjectDisposedException(ode.ObjectName, ode.Message);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message, ex);
     }
     finally
     {
         MessageSubmitted?.Invoke(this, close);
         SentMre.Set();
     }
 }
Example #2
0
 protected void InvokeMessageSubmitted(bool close)
 {
     MessageSubmitted?.Invoke(this, close);
 }
 protected void RaiseMessageSubmitted(IClientInfo client, bool close)
 {
     MessageSubmitted?.Invoke(client, close);
 }
 protected void InvokeMessageSubmitted(int id, bool close)
 {
     MessageSubmitted?.Invoke(id, close);
 }