Beispiel #1
0
 /// <summary>
 /// initialization properties
 /// </summary>
 /// <param name="taskNumber">number of tasks for execute is alive function</param>
 /// <param name="address">domain name</param>
 /// <param name="timeout">request timeout</param>
 void initialization(string taskNumber, string address, string timeout)
 {
     this.Proxies      = LooperQueries.GetProxies();
     this.threadNumber = Int32.Parse(taskNumber);
     this.timeout      = Int32.Parse(timeout);
     this.address      = address;
     this.total        = Proxies.Count;
 }
Beispiel #2
0
 /// <summary>
 /// set combo list
 /// </summary>
 /// <param name="path">combo list file path</param>
 public void SetComboList(string path)
 {
     try {
         var list = Utilities.ReadFile(path) as List <string>;
         LooperQueries.SetComboList(list);
     } catch (Exception e) {
         CMD.ShowApplicationMessageToUser($"message : {e.Message}\nroute : {this.ToString()}", showType: ShowType.DANGER);
     }
 }
Beispiel #3
0
 /// <summary>
 /// remove proxy from proxies
 /// </summary>
 public void RemoveProxy(string proxy)
 {
     try
     {
         LooperQueries.RemoveProxy(proxy);
     }
     catch (Exception e)
     {
         CMD.ShowApplicationMessageToUser($"message : {e.Message}\nroute : {this.ToString()}", showType: ShowType.DANGER);
     }
 }
Beispiel #4
0
 /// <summary>
 /// write proxies to file
 /// </summary>
 /// <param name="path">file path</param>
 public void WriteProxies(string path)
 {
     try
     {
         LooperQueries.WriteProxies(path);
     }
     catch (Exception e)
     {
         CMD.ShowApplicationMessageToUser($"message : {e.Message}\nroute : {this.ToString()}", showType: ShowType.DANGER);
     }
 }
Beispiel #5
0
 /// <summary>
 /// display combo list
 /// </summary>
 public void DisplayComboList()
 {
     try
     {
         var comboList = LooperQueries.GetComboList();
         var count     = 0;
         foreach (var combo in comboList)
         {
             CMD.ShowApplicationMessageToUser($"{++count} ) {combo}");
         }
     }
     catch (Exception e)
     {
         CMD.ShowApplicationMessageToUser($"message : {e.Message}\nroute : {this.ToString()}", showType: ShowType.DANGER);
     }
 }
Beispiel #6
0
 /// <summary>
 /// display proxy list
 /// </summary>
 public void DisplayProxyList()
 {
     try
     {
         var proxies = LooperQueries.GetProxies();
         var counter = 0;
         foreach (var proxy in proxies)
         {
             counter++;
             CMD.ShowApplicationMessageToUser($"{counter})\t{proxy}");
         }
     }
     catch (Exception e)
     {
         CMD.ShowApplicationMessageToUser($"message : {e.Message}\nroute : {this.ToString()}", showType: ShowType.DANGER);
     }
 }