随笔分类 -  .NET Core

.Net Core and ASP.NET Core
摘要:1.WinForms(Windows Forms) 是最早的Windows桌面应用程序开发框架,于2002年推出,提供简单易用的界面设计工具,适合快速开发传统应用程序,基于传统的窗体和控件模型,使用C#或VB.NET等语言进行开发。启动快,内存占用小,适合简单的应用程序开发‌ 2.WPF(Windo 阅读全文
posted @ 2025-02-26 17:00 SpringCore 阅读(7) 评论(0) 推荐(0) 编辑
摘要:1. 使用Linux的top命令查找CPU占用高的PID 然后使用Java提供的jstack备份快照 top -H jstack 2. 使用阿里巴巴开源的arthas工具 https://arthas.aliyun.com/ thread -n1 上面的命令会找出最高占用CPU的线程,然后打印出相应 阅读全文
posted @ 2025-02-21 16:52 SpringCore 阅读(1) 评论(0) 推荐(0) 编辑
摘要:使Model实现IValidatableObject接口并重写Validate方法即可 public class AuditIPKeepRecordApply_In: IValidatableObject { /// <summary> /// IP备案申请表主键id /// </summary> 阅读全文
posted @ 2023-10-08 11:14 SpringCore 阅读(16) 评论(0) 推荐(0) 编辑
摘要:本文以Dotnet 6为例 1.下载 https://dotnet.microsoft.com/zh-cn/download/dotnet/6.0 2.解压 tar -zxvf aspnetcore-runtime-6.0.21-linux-x64.tar.gz 3.配置环境变量 vim /etc/ 阅读全文
posted @ 2023-09-12 14:58 SpringCore 阅读(242) 评论(0) 推荐(0) 编辑
摘要:```c# public Bitmap[] GetImage(int imageNum, string imagePath = "d:\\coreqi.png") { Image image = Bitmap.FromFile(imagePath); int rowNum = 1; //行数 int 阅读全文
posted @ 2023-08-28 15:01 SpringCore 阅读(239) 评论(0) 推荐(0) 编辑
摘要:.Net 6使用`DateTime`获取系统当前时间,在Windows下输出为正常时间,但是在Linux下会获取到2023-8-16 上午10:00:00 类似的时间样式,会导致在Linux下抛出非法时间异常。 *解决方案:* `在Main函数中使用CultureInfo.DefaultThread 阅读全文
posted @ 2023-08-16 11:46 SpringCore 阅读(414) 评论(0) 推荐(0) 编辑
摘要:Github地址:https://github.com/microsoft/FASTER 官网网址:https://microsoft.github.io/FASTER/ 官方文档地址:https://microsoft.github.io/FASTER/docs/quick-start-guide 阅读全文
posted @ 2023-07-10 11:00 SpringCore 阅读(376) 评论(0) 推荐(0) 编辑
摘要:### Java服务端[略] 请参考 [Java基于Dapr的服务调用](https://www.cnblogs.com/fanqisoft/p/17469154.html "Java基于Dapr的服务调用")完成Java服务端的搭建 ### Dotnet客户端 ##### 1.创建Dotnet W 阅读全文
posted @ 2023-06-09 16:07 SpringCore 阅读(28) 评论(0) 推荐(0) 编辑
摘要:#### 本文原地址:[C#语法特性总结](https://www.cnblogs.com/louzixl/p/15553715.html "C#语法特性总结") #### 作者:louzi C# 10已与.NET 6、VS2022一起发布,本文按照.NET的发布顺序,根据[微软官方文档](http 阅读全文
posted @ 2023-06-09 09:35 SpringCore 阅读(54) 评论(0) 推荐(0) 编辑
摘要:1.获取枚举的描述字典 public static Dictionary<string, string> GetEnumDescriptionDict(Type t) { Dictionary<string, string> enumDescDict = new (); if (!t.IsEnum) 阅读全文
posted @ 2023-05-19 10:50 SpringCore 阅读(97) 评论(0) 推荐(0) 编辑
摘要:1. Java Grpc Server 参考地址: grpc-java os-maven-plugin protobuf-maven-plugin 1.新建SpringBoot项目[略] 2.POM引入相关依赖 <dependencies> <dependency> <groupId>io.gith 阅读全文
posted @ 2023-05-17 14:24 SpringCore 阅读(118) 评论(0) 推荐(0) 编辑
摘要:1.准备工作 1.Protocol Buffers 下载地址:https://github.com/protocolbuffers/protobuf/releases 需要注册环境变量 PROTOC_HOME -> D:\Developer\protoc\bin 【你自己的二进制目录】 Path - 阅读全文
posted @ 2023-05-08 14:53 SpringCore 阅读(285) 评论(0) 推荐(0) 编辑
摘要:原文地址:https://my.oschina.net/sesametech/blog/1563905 GCHandle hander = GCHandle.Alloc(obj); var pin = GCHandle.ToIntPtr(hander); Debug.Print($"Device : 阅读全文
posted @ 2023-04-18 09:20 SpringCore 阅读(314) 评论(0) 推荐(0) 编辑
摘要:1.实现原理 https://www.cnblogs.com/eventhorizon/p/12240767.html 2.丢失上下文相关解答 https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGu 阅读全文
posted @ 2023-04-13 21:25 SpringCore 阅读(74) 评论(0) 推荐(0) 编辑
摘要:https://www.dongchuanmin.com/net/3428.html https://www.cnblogs.com/wl-blog/p/14870998.html https://www.cnblogs.com/chenxinblogs/p/16721091.html https: 阅读全文
posted @ 2023-04-13 21:22 SpringCore 阅读(16) 评论(0) 推荐(0) 编辑
摘要:原文地址:https://www.cnblogs.com/stulzq/p/14085008.html 1.关系运算符# != 与等号共同组成关系运算符,检查两个操作数的值是否相等,如:A!=B 2.逻辑运算符# ! 称为逻辑非运算符。用来逆转操作数的逻辑状态。如果条件为真则逻辑非运算符将使其为假。 阅读全文
posted @ 2023-04-13 21:21 SpringCore 阅读(279) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
more_horiz
keyboard_arrow_up light_mode palette
选择主题