Esempio n. 1
0
 /// <summary>
 /// Handles file delete event and executes ftp client task for specific item
 /// <param name="item">Item to process</param>
 /// <param name="ftpClient">Client to process</param>
 /// </summary>
 public void DeleteItem(SyncQueueItem item, FtpClient ftpClient)
 {
     Task.Run(() => { ftpClient.DeleteFile(item); });
 }
Esempio n. 2
0
 /// <summary>
 /// Handles file change event and executes ftp client task for specific item
 /// <param name="item">Item to process</param>
 /// <param name="ftpClient">Client to process</param>
 /// </summary>
 public void ChangeItem(SyncQueueItem item, FtpClient ftpClient)
 {
     Task.Run(() => { ftpClient.UploadFile(item); });
 }
Esempio n. 3
0
 /// <summary>
 /// Handles file rename event and executes ftp client task for specific item
 /// <param name="item">Item to process</param>
 /// <param name="ftpClient">Client to process</param>
 /// </summary>
 public void RenameItem(SyncQueueItem item, FtpClient ftpClient)
 {
     Task.Run(() => { ftpClient.Rename(item); });
 }