摘要:
private static PhantomJSDriverService GetPhantomJSDriverService() { PhantomJSDriverService pds = PhantomJSDriverService.CreateDefaultService("D:/");// 阅读全文
摘要:
IF NOT EXISTS (SELECT 1 FROM [dbo].[geo_asso_type] WHERE [geo_asso_type_id] = 11) BEGIN INSERT INTO [dbo].[geo_asso_type] ([geo_asso_type_id] ,[bound_ 阅读全文
摘要:
/// <summary> /// 放开超过指定时间的黑名单IP /// </summary> public static void ResetFireWallBlackIp(string ruleName, string hostip, string expireTS) { DateTime dt 阅读全文
摘要:
/// <summary> /// IIS日志分析器 /// </summary> /// <param name="filepath"></param> public static void IISlogAnalyzer(string filepath, Func<IISLogEvent, boo 阅读全文
摘要:
/// <summary> /// 获取日志目录下面最新的日志文件 /// </summary> /// <returns></returns> public static string GetLatestLogFile() { string filepath = ConfigurationMana 阅读全文
摘要:
public static class ExpressionHelp { private static Expression<T> Combine<T>(this Expression<T> first, Expression<T> second, Func<Expression, Expressi 阅读全文
摘要:
@echo off @echo 开始卸载服务 %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe %~dp0IISLogAnalyzer.exe -u pause 注意bat文件要与exe文件在同一目录,且以管理员权限运行b 阅读全文
摘要:
@echo off @echo 开始安装服务 %SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe %~dp0IISLogAnalyzer.exe pause 阅读全文
摘要:
List<string> blackIpList = (from d in ds.Tables[0].AsEnumerable() select d.Field<string>("blackip") ).ToList(); 阅读全文