Exemple #1
0
        /// <summary>
        /// Sends a file to up-stream components.
        /// </summary>
        /// <param name="context">The context in which the file is being sent.  Cannot be null.</param>
        /// <param name="path">the path to the file on the local file system</param>
        /// <param name="description">A short description of the data being sent.</param>
        /// <param name="deleteFile">True to automatically have the file removed after sending it.</param>
        public void SendFileAsync(DataCollectionContext context, string path, string description, bool deleteFile)
        {
            var fileInfo = new FileTransferInformation(context, path, deleteFile);

            fileInfo.Description = description;

            this.SendFileAsync(fileInfo);
        }
Exemple #2
0
 /// <summary>
 /// Sends a file to up-stream components
 /// </summary>
 /// <param name="fileTransferInformation">Information about the file to be transferred.</param>
 public abstract void SendFileAsync(FileTransferInformation fileTransferInformation);