public BackgroundRetriever(ProxySettings ns, string descName, string downloadUrl, 
     string repositoryPath, int downloadInterval)
 {
     _ns = ns;
     _descName = descName;
     _downloadUrl = downloadUrl;
     _downloadInterval = downloadInterval;
     _repositoryPath = repositoryPath;
 }
        public WebFileRetriever(ProxySettings ns, string downloadUrl, string destinationPath, bool runAsBackgroundThread)
        {
            _ns = ns;
            _downloadUrl = downloadUrl;
            _destinationPath = destinationPath;

            if (runAsBackgroundThread)
            {
                _bw = new BackgroundWorker();
                _bw.WorkerReportsProgress = _bw.WorkerSupportsCancellation = false;
                _bw.DoWork += new DoWorkEventHandler(OnBackgroundDownload);
                _bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(OnBackgroundDownloadCompleted);
                _bw.RunWorkerAsync();
            }
            else
            {
                // Exceptions will be caught at top level
                PerformUnsafeDownload();
            }
        }
 public OsdbConnection(string osdbServerUrl, ProxySettings ps)
 {
     _proxy = XmlRpcProxyGen.Create<IOsdbProtocol>();
     _proxy.Url = osdbServerUrl;
     _proxy.Proxy = AppConfig.GetWebProxy();
 }