Пример #1
0
 private void RestartAll(HashInputArgs args)
 {
     foreach (HashProviderProxy proxy in this.providers)
     {
         proxy.Abort();
         proxy.Start(args);
     }
 }
Пример #2
0
 /// <summary>
 /// Starts the provider
 /// </summary>
 /// <param name="args">The <see cref="HashInputArgs"/> to pass to the provider's Execute method</param>
 public void Start(HashInputArgs args)
 {
     this.currentArgs  = args;
     this.showDots     = true;
     this.lastProgress = -1d;
     this.Progress     = 0d;
     if (this.IsEnabled)
     {
         try { this.provider.Execute(this.currentArgs); }
         catch { }
     }
     else
     {
         this.Result = "N/A";
     }
 }