public bool DownloadInstaller(string customerName, string installerName)
        {
            try
            {
                _fileDownLoader.DownLoadFile(
                    string.Format("http://example.com/{0}/{1}",
                                  customerName,
                                  installerName),
                    _setupDestinationFile);

                return(true);
            }
            catch (WebException)
            {
                return(false);
            }
        }
Example #2
0
        public bool DownloadInstaller(string customerName, string installerName)
        {
            // var client = new WebClient();
            try
            {
                //client.DownloadFile(
                //    string.Format("http://example.com/{0}/{1}",
                //        customerName,
                //        installerName),
                //    _setupDestinationFile);

                _ifileDownLoader.DownLoadFile(string.Format("http://example.com/{0}/{1}",
                                                            customerName,
                                                            installerName),
                                              _setupDestinationFile);

                return(true);
            }
            catch (WebException)
            {
                return(false);
            }
        }