예제 #1
0
        private void InitState()
        {
            this.LastPollingTimestamp  = null;
            this.NewVersionDetails     = string.Empty;
            this.IsNewVersionAvailable = false;
            this.IsDownloadComplete    = false;

            this.state = new StateHandler(UpdaterStatus.Idle);
        }
예제 #2
0
        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);
        }