示例#1
0
        /// <summary>
        /// Notifies the component that file upload is about to start.
        /// </summary>
        /// <param name="fileEntry">File entry to be uploaded.</param>
        /// <returns>A task that represents the asynchronous operation.</returns>
        internal Task UpdateFileStartedAsync(IFileEntry fileEntry)
        {
            // reset all
            ProgressProgress = 0;
            ProgressTotal    = fileEntry.Size;
            Progress         = 0;

            return(Started.InvokeAsync(new FileStartedEventArgs(fileEntry)));
        }