Frapid.WebsiteBuilder.Models.Themes.ThemeUploader.Download C# (CSharp) Method

Download() private method

private Download ( ) : void
return void
        private void Download()
        {
            if (this.DownloadUrl == null)
            {
                throw new ThemeInstallException("Could not download theme because supplied URL is invalid or missing.");
            }

            using (var client = new WebClient())
            {
                try
                {
                    client.DownloadFile(this.DownloadUrl, this.ArchivePath);
                }
                catch (WebException ex)
                {
                    throw new ThemeInstallException(ex.Message, ex);
                }
            }
        }