摘要: 1 互斥锁lock(基于Monitor实现) 定义: private static readonly object Lock = new object(); 使用: lock (Lock) { //todo } 作用:将会锁住代码块的内容,并阻止其他线程进入该代码块,直到该代码块运行完成,释放该锁。 阅读全文
posted @ 2024-03-26 11:03 無海 阅读(13) 评论(0) 推荐(0) 编辑
摘要: private void btnExport_Click(object sender, RoutedEventArgs e) { System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); gri 阅读全文
posted @ 2024-03-25 11:23 無海 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 在DotNet开发中,有几个常用的NLP(自然语言处理)开发库可供选择。以下是几个流行的DotNet NLP库: Stanford.NLP:Stanford.NLP是一个开源的DotNet库,提供了各种NLP工具和算法,例如词性标注、命名实体识别、分词、语法分析等。它是基于Stanford大学的NL 阅读全文
posted @ 2024-02-22 11:04 無海 阅读(148) 评论(0) 推荐(0) 编辑
摘要: public static IntPtr OnnxRuntimeImportResolver(string libraryName, Assembly assembly, DllImportSearchPath? searchPath) { //调试信息 LogHelper.NlogTrace(li 阅读全文
posted @ 2024-01-11 10:16 無海 阅读(13) 评论(0) 推荐(0) 编辑
摘要: IIS——应用程序池——高级设置——启用32位应用程序 :true 打开Internet Information Services (IIS)管理器。 在左侧导航栏中,展开服务器节点并选择“应用程序池”。 在中间窗格中,选择要更改的应用程序池。 在右侧操作窗格中,点击“高级设置”。 在高级设置对话框 阅读全文
posted @ 2024-01-11 10:14 無海 阅读(83) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 公共方法—— 发送http post请求 2020年6月2日11:20:42 Dennyhui /// </summary> /// <param name="formData">参数</param> /// <param name="requestUri">请求 阅读全文
posted @ 2023-12-28 15:52 無海 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 网址: http://softwareupdate.vmware.com/cds/vmw-desktop/ws/ 阅读全文
posted @ 2023-12-28 11:25 無海 阅读(10) 评论(0) 推荐(0) 编辑
摘要: //设置页面加载超时时间 this.driver.Manage().Timeouts().PageLoad.Seconds.Equals(TimeSpan.FromSeconds(300)); //隐式等待 this.driver.Manage().Timeouts().ImplicitWait.S 阅读全文
posted @ 2023-12-22 16:12 無海 阅读(33) 评论(0) 推荐(0) 编辑
摘要: CefSharp在遇到不安全证书的网址,如:不安全的https等,默认不显示,任务管理器中线程也不会增加 Browser.RequestHandler = new ExampleRequestHandler(); public class ExampleRequestHandler : Reques 阅读全文
posted @ 2023-11-27 10:36 無海 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 1.安装 log4net,通过 Nuget 下载 2.在AssemblyInfo.cs中添加 [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", ConfigFileExtension = "config" 阅读全文
posted @ 2023-11-24 11:26 無海 阅读(144) 评论(0) 推荐(0) 编辑