/// <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); }); }
/// <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); }); }
/// <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); }); }