Beispiel #1
0
 internal void RaiseOnError(TftpTransferError error)
 {
     if (OnError != null)
     {
         OnError(this, error);
     }
 }
Beispiel #2
0
 public void RaiseOnError(TftpTransferError error)
 {
     if (OnError != null)
     {
         OnError(error);
     }
 }
Beispiel #3
0
 private void connection_OnError(TftpTransferError error)
 {
     lock (this)
     {
         RaiseOnError(error);
     }
 }
Beispiel #4
0
 void TransferStub_OnError(ITftpTransfer transfer, TftpTransferError error)
 {
     if (error is TimeoutError)
     {
         HadNetworkTimeout = true;
     }
 }
Beispiel #5
0
        private void HandleTransferError(ITftpTransfer transfer, TftpTransferError error)
        {
            _logger.LogWarning(
                "Transfer {0} has failed with an error: {1}.",
                _transferId,
                error.ToString());

            var evt = new TftpDownloadFailedEvent(
                _clientInfo,
                _clock.GetOffsetNow(),
                _transferId,
                transfer.Filename,
                error.ToString());

            _logService.LogEvent(evt);
        }
Beispiel #6
0
        public ReceivedError(Error error)
        {
            TftpErrorPacket errorReceived;

            /* Create the Error Package while handling the case where the sender */
            /* did not provide an error message. */
            try
            {
                errorReceived = new TftpErrorPacket(error.ErrorCode, error.Message);
            }
            catch (ArgumentException)
            {
                errorReceived = new TftpErrorPacket(error.ErrorCode, "No Message Provided");
            }
            this.error = errorReceived;
        }
Beispiel #7
0
 static void transfer_OnError(ITftpTransfer transfer, TftpTransferError error)
 {
     OutputTransferStatus(transfer, "Error: " + error);
 }
Beispiel #8
0
 private void HandleError(TftpTransferError error)
 {
     _logger.LogError("Error occured in TFTP server: {0}", error.ToString());
 }
 public ReceivedError(TftpTransferError error)
 {
     this.error = error;
 }
Beispiel #10
0
 static void transfer_OnError(ITftpTransfer transfer, TftpTransferError error)
 {
     Console.WriteLine("Transfer failed: " + error);
     TransferFinishedEvent.Set();
 }
Beispiel #11
0
 void transfer_OnError(ITftpTransfer transfer, TftpTransferError error)
 {
     Console.WriteLine("Transfer failed: " + error);
     MessageBox.Show("升级设备:" + transfer.UserContext + "失败", "提示");
     TransferFinishedEvent.Reset();
 }
Beispiel #12
0
 private void OnError(ITftpTransfer transfer, TftpTransferError error)
 {
     Console.WriteLine("Failed");
     m_TransferHasError = true;
 }
Beispiel #13
0
 static void transfer_OnError(ITftpTransfer transfer, TftpTransferError error)
 {
     Tftp.TftpMonitor.SetTftpStatus(transfer.UserContext.ToString(), false);
     TransferFinishedEvent.Set();
 }
Beispiel #14
0
 void transfer_OnError(ITftpTransfer transfer, TftpTransferError error)
 {
     form.Log.Invoke("Transfer failed: " + error);
     TransferFinishedEvent.Set();
 }