Beispiel #1
0
 private void QueueOperations()
 {
     SetStatus("Queuing work items...");
     foreach (ProfileRecord p in this.profile)
     {
         if (p.Enabled)
         {
             Operation op = Profile.FindOpeartion(p);
             if (op != null)
             {
                 op.Proxy = this.Proxy;
                 foreach (RegionEndpoint region in RegionsString.ParseSystemNames(p.Regions).Items)
                 {
                     scanner.Invokations.Enqueue(new OperationInvokation(op, region, creds, p.PageSize));
                 }
             }
         }
     }
 }
Beispiel #2
0
 private void QueueOperations()
 {
     SetStatus("Queuing work items...");
     foreach (ProfileRecord p in this.profile)
     {
         if (p.Enabled)
         {
             Operation op = Profile.FindOpeartion(p);
             if (op != null)
             {
                 WebProxy proxy = Configuration.Instance.GetWebProxy();
                 foreach (RegionEndpoint region in RegionsString.ParseSystemNames(p.Regions).Items)
                 {
                     scanner.Invokations.Enqueue(op.Clone(proxy, region, this.creds, p.PageSize));
                 }
             }
         }
     }
 }
Beispiel #3
0
 private void QueueOperations()
 {
     Console.Write(String.Format("Queueing from '{0}' profile...", this.profile.Name));
     foreach (ProfileRecord p in this.profile)
     {
         if (p.Enabled)
         {
             Operation op = Profile.FindOpeartion(p);
             if (op != null)
             {
                 WebProxy proxy = Configuration.Instance.GetWebProxy();
                 foreach (RegionEndpoint region in RegionsString.ParseSystemNames(p.Regions).Items)
                 {
                     scanner.Invokations.Enqueue(op.Clone(proxy, region, this.creds, p.PageSize));
                 }
             }
         }
     }
     Console.WriteLine(String.Format("{0} operations queued.", scanner.Invokations.Count));
 }