public VersionChecker(IDev2WebClient webClient, Func<Version> versionGetter)
 {
     VerifyArgument.IsNotNull("webClient", webClient);
     VerifyArgument.IsNotNull("versionGetter", versionGetter);
     _webClient = webClient;
     _versionGetter = versionGetter;
     _isDone = false;
 }
 public LatestWebGetter(IDev2WebClient webClient)
 {
     if(webClient == null)
     {
         throw new ArgumentNullException("webClient");
     }
     _webClient = webClient;
 }
예제 #3
0
        public ProgressFileDownloader(IDev2WebClient webClient, IFile file, ICryptoProvider cryptoProvider)
        {
            VerifyArgument.IsNotNull("webClient", webClient);
            VerifyArgument.IsNotNull("file", file);
            VerifyArgument.IsNotNull("cryptoProvider", cryptoProvider);
            _webClient = webClient;

            ProgressDialog = GetProgressDialogViewModel(_owner, Cancel);
            _file = file;
            _cryptoProvider = cryptoProvider;
            _webClient.DownloadProgressChanged += OnDownloadProgressChanged;
            _dontStartUpdate = false;
            ShutDownAction = ShutdownAndInstall;
            if (!Directory.Exists("Installers"))
                Directory.CreateDirectory("Installers");

        }
 public VersionCheckerTestClass(IDev2WebClient webClient, Func<Version> func)
     : base(webClient, func)
 {
 }
 public VersionCheckerTestClass(IDev2WebClient webClient)
     : base(webClient, VersionInfo.FetchVersionInfoAsVersion)
 {
 }
 public TestProgressFileDownloader(IDev2WebClient webClient,IFile file,ICryptoProvider crypt)
     : base(webClient, file,crypt)
 {
 }
예제 #7
0

        
예제 #8
0