随笔分类 -  .NET Core

.Net Core and ASP.NET Core
摘要:企业版:VYGRN-WPR22-HG4X3-692BF-QGT2V 专业版: NVTDK-QB8J9-M28GR-92BPC-BTHXK 阅读全文
posted @ 2025-11-24 14:05 SpringCore 阅读(416) 评论(0) 推荐(1)
摘要:1.WinForms(Windows Forms) 是最早的Windows桌面应用程序开发框架,于2002年推出,提供简单易用的界面设计工具,适合快速开发传统应用程序,基于传统的窗体和控件模型,使用C#或VB.NET等语言进行开发。启动快,内存占用小,适合简单的应用程序开发‌ 2.WPF(Windo 阅读全文
posted @ 2025-02-26 17:00 SpringCore 阅读(476) 评论(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 阅读(32) 评论(0) 推荐(0)
摘要:使Model实现IValidatableObject接口并重写Validate方法即可 public class AuditIPKeepRecordApply_In: IValidatableObject { /// <summary> /// IP备案申请表主键id /// </summary> 阅读全文
posted @ 2023-10-08 11:14 SpringCore 阅读(52) 评论(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 阅读(336) 评论(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 阅读(290) 评论(0) 推荐(0)
摘要:.Net 6使用`DateTime`获取系统当前时间,在Windows下输出为正常时间,但是在Linux下会获取到2023-8-16 上午10:00:00 类似的时间样式,会导致在Linux下抛出非法时间异常。 *解决方案:* `在Main函数中使用CultureInfo.DefaultThread 阅读全文
posted @ 2023-08-16 11:46 SpringCore 阅读(544) 评论(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 阅读(625) 评论(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 阅读(56) 评论(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 阅读(133) 评论(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 阅读(119) 评论(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 阅读(175) 评论(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 阅读(368) 评论(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 阅读(400) 评论(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 阅读(95) 评论(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 阅读(25) 评论(0) 推荐(0)
摘要:原文地址:https://www.cnblogs.com/stulzq/p/14085008.html 1.关系运算符# != 与等号共同组成关系运算符,检查两个操作数的值是否相等,如:A!=B 2.逻辑运算符# ! 称为逻辑非运算符。用来逆转操作数的逻辑状态。如果条件为真则逻辑非运算符将使其为假。 阅读全文
posted @ 2023-04-13 21:21 SpringCore 阅读(330) 评论(0) 推荐(0)
摘要:Visual Studio 2022(VS2022) 激活码: Pro: TD244-P4NB7-YQ6XK-Y8MMM-YWV2JEnterprise: VHF9H-NXBBB-638P6-6JHCY-88JWH 阅读全文
posted @ 2021-11-09 20:15 SpringCore 阅读(247265) 评论(41) 推荐(96)
摘要:原文地址: https://www.oschina.net/news/118690/the-future-of-net-standard 作者:局长 微软 .NET 官方博客近日发布了一篇谈论 .NET Standard 未来的文章。文章作者是 .NET 项目经理 Immo,他在文章中指出未来 .N 阅读全文
posted @ 2020-09-18 09:31 SpringCore 阅读(792) 评论(0) 推荐(0)
摘要:1.环境准备 1.必须安装.Net 5 SDK且项目基于.Net 5【也可以叫.Net Core 5】 2.vs需要支持C#9.0语法且设置中开启.Net 5预览功能 1.查看支持语法 工具 =》 命令行 =》 开发者命令提示 csc -langversion:? 2.开启VS预览 2.新建.Net 阅读全文
posted @ 2020-08-14 15:16 SpringCore 阅读(601) 评论(0) 推荐(0)