private void InitState() { this.LastPollingTimestamp = null; this.NewVersionDetails = string.Empty; this.IsNewVersionAvailable = false; this.IsDownloadComplete = false; this.state = new StateHandler(UpdaterStatus.Idle); }
public Downloader() { this.downloadState = new StateHandler(DownloaderState.Idle); this.updateManifestUri = new Uri(Settings.Instance.UpdateUri); this.webClient = new WebClient(); this.webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(OnDownloadFileCompleted); }