Esempio n. 1
0
        /// <summary>
        ///     Prepares the arguments to pass into downloader
        /// </summary>
        /// <returns>
        ///     The string of arguments built from the options
        /// </returns>
        public async Task <string> PrepareDownloadAsync()
        {
            await this.semaphore.WaitAsync();

            string args = await PreparationService.PrepareDownloadAsync(this);

            this.semaphore.Release();
            return(args);
        }
Esempio n. 2
0
        /// <summary>
        ///     Prepares the arguments to pass into downloader
        /// </summary>
        /// <returns>
        ///     The string of arguments built from the options
        /// </returns>
        public async Task <string> PrepareDownloadAsync()
        {
            await this.semaphore.WaitAsync();

            await this.UpdateExecutable();

            string args = await PreparationService.PrepareDownloadAsync(this, downloadTokenSource.Token);

            this.semaphore.Release();
            return(args);
        }