withSIX.Sync.Core.Transfer.Specs.MultiMirrorFileDownloadSpec.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
        public void Start() {
            if (Progress != null) {
                Progress.StartOutput(LocalFile.ToString());
            }
        }

Usage Example

 public void Download(MultiMirrorFileDownloadSpec spec) {
     spec.Start();
     try {
         while (true) {
             var host = _mirrorStrategy.GetHost();
             if (TryDownload(spec, host))
                 break;
             ResetSpec(spec);
             Thread.Sleep(MillisecondsTimeout);
         }
     } catch (Exception) {
         spec.Fail();
         throw;
     }
 }
All Usage Examples Of withSIX.Sync.Core.Transfer.Specs.MultiMirrorFileDownloadSpec::Start