本文整理汇总了C#中BaseLib.clsDBQueryManager.SelectPublicIPData方法的典型用法代码示例。如果您正苦于以下问题:C# clsDBQueryManager.SelectPublicIPData方法的具体用法?C# clsDBQueryManager.SelectPublicIPData怎么用?C# clsDBQueryManager.SelectPublicIPData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseLib.clsDBQueryManager
的用法示例。
在下文中一共展示了clsDBQueryManager.SelectPublicIPData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetPublicProxies
public List<string> GetPublicProxies()
{
List<string> lst_Proxies = new List<string>();
try
{
clsDBQueryManager setting = new clsDBQueryManager();
DataSet ds = setting.SelectPublicIPData();
if (ds.Tables != null && ds.Tables["tb_IP"].Rows.Count > 0)
{
foreach (DataRow dRow in ds.Tables["tb_IP"].Rows)
{
string IP = dRow.ItemArray[0].ToString() + ":" + dRow.ItemArray[1].ToString() + ":" + dRow.ItemArray[2].ToString() + ":" + dRow.ItemArray[3].ToString();
lst_Proxies.Add(IP);
}
}
}
catch { }
return lst_Proxies;
}
示例2: CheckingProxies
public void CheckingProxies()
{
try
{
clsDBQueryManager Db = new clsDBQueryManager();
DataSet ds = Db.SelectPublicIPData();
foreach (DataRow dr in ds.Tables[0].Rows)
{
ThreadPool.SetMaxThreads(25, 5);
ThreadPool.QueueUserWorkItem(new WaitCallback(ThreadPoolCheckProxies), new object[] { dr });
Thread.Sleep(1000);
}
}
catch (Exception ex)
{
GlobusFileHelper.AppendStringToTextfileNewLine(DateTime.Now + " --> Error --> CheckingProxies() --> " + ex.Message, Globals.Path_IPSettingErroLog);
GlobusFileHelper.AppendStringToTextfileNewLine("Error --> CheckingProxies() --> " + ex.Message, Globals.Path_TwtErrorLogs);
}
}
示例3: chk_RetweetAndFavoritePublicIP_CheckedChanged
private void chk_RetweetAndFavoritePublicIP_CheckedChanged(object sender, EventArgs e)
{
try
{
if (chk_RetweetAndFavoritePublicIP.Checked == true)
{
IPUpload();
chk_RetweetAndFavoritePrivateIP.Checked = false;
clsDBQueryManager SetDb = new clsDBQueryManager();
DataSet ds = new DataSet();
ds = SetDb.SelectPublicIPData();
if (ds.Tables[0].Rows.Count > 0)
{
}
else
{
//MessageBox.Show("Please Import IP Files. We Are redirecting you to IP Tab");
//Tb_AccountManager.SelectedIndex = 5;
DialogResult dr = MessageBox.Show("Please Import IP Files. We Are redirecting you to IP Tab", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dr == DialogResult.Yes)
{
Tb_AccountManager.SelectedIndex = 5;
}
else
{
//do whatever you want
}
}
AddToLog_RetweetAndFavorite("[ " + DateTime.Now + " ] => [ " + ds.Tables[0].Rows.Count + " Public Proxies loaded from DataBase ]");
AddToGeneralLogs("[ " + DateTime.Now + " ] => [ " + ds.Tables[0].Rows.Count + " Public Proxies loaded from DataBase ]");
}
}
catch (Exception ex)
{
//AddToLog_RetweetAndFavorite(ex.Message);
}
}