Supports Windows and Linux var macAddr = ( from nic in NetworkInterface.GetAllNetworkInterfaces()[......]继续阅读

2020年3月21日 0条评论 3728点热度 1人点赞 痴者工良 阅读全文

支持 Windows 和 Linux var macAddr = ( from nic in NetworkInterface.GetAllNetworkInterfaces()[......]继续阅读

2020年3月21日 0条评论 3710点热度 1人点赞 痴者工良 阅读全文

There are two toolkits for writing GUI in Java, namely AWT and Swing. Swing is an extension of AWT, featuring richer components and methods compared[......] 继续阅读

2020年3月21日 0条评论 110点热度 2人点赞 痴者工良 阅读全文

java 中编写 GUI 有两中工具包,分别为 AWT、Swing。 Swing 是 AWT 的拓展,Swing 具有比 AWT 丰富的组件和方法。 AWT 和 Swing 都能跨平台使用;AWT 会随着不同的系统平台,UI 样式会有所变化,Swing 则不会,设计完毕后在所有平台下样式一致。 im[......]继续阅读

2020年3月21日 0条评论 3147点热度 2人点赞 痴者工良 阅读全文

1. Quick Implementation of Authorization Verification What is JWT? Why use JWT? What are the components of JWT? These can be easily found on Baidu, so[......] 继续阅读

2020年3月15日 0条评论 3210点热度 0人点赞 痴者工良 阅读全文

[TOC] 1,快速实现授权验证 什么是 JWT ?为什么要用 JWT ?JWT 的组成? 这些百度可以直接找到,这里不再赘述。 实际上,只需要知道 JWT 认证模式是使用一段 Token 作为认证依据的手段。 我们看一下 Postman 设置 Token 的位置。 那么,如何使用 C# 的 Ht[......] 继续阅读

2020年3月15日 0条评论 3212点热度 0人点赞 痴者工良 阅读全文

var authorizeData = endpoint?.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeData>(); [......] 继续阅读

2020年3月15日 0条评论 86点热度 0人点赞 痴者工良 阅读全文

var authorizeData = endpoint?.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeDat[......]继续阅读

2020年3月15日 0条评论 2679点热度 0人点赞 痴者工良 阅读全文

C# has common types with the following suffixes, and the author has summarized their general uses. Extensions Helper or Helpers Scheme Builder Contex[......] 继续阅读

2020年3月14日 0条评论 116点热度 0人点赞 痴者工良 阅读全文

C# 中有常见的以以下名称为后缀的类型,笔者总结了一下大概用途。 Extensions Helper 或 Helpers Scheme Builder Context Factory Provider Options Defaults Extensions 此类型用于实现拓展函数,类名后加上 E[......] 继续阅读

2020年3月14日 0条评论 2797点热度 0人点赞 痴者工良 阅读全文

Introduction Purpose of Writing Requirements Analysis Overview Design 1. Create a new feature to identify permission control; 2. Permission control is[......] 继续阅读

2020年3月12日 1条评论 3876点热度 1人点赞 痴者工良 阅读全文

前导 编写目的 需求分析 概要设计 1,创建一个新特性,用来标识权限控制; 2,权限控制以 Controller、Action 作为单位; 3,基于 ASP.NET Core 自带的权限认证; 4,要求极速响应; 5,支持响应事件,对于验证流程,不同阶段触发事件; 6,设置接口,定义方法,如何判断用[......] 继续阅读

2020年3月12日 1条评论 3892点热度 1人点赞 痴者工良 阅读全文

Introduction CZGL.SystemInfo is a resource information retrieval library that supports Windows and Linux, used to obtain system environment, machine r[......] 继续阅读

2020年3月7日 0条评论 96点热度 0人点赞 痴者工良 阅读全文

简介 CZGL.SystemInfo 是一个支持 Windows 和 Linux 的资源信息获取库,用于获取系统环境、机器资源信息、系统资源使用情况。 Nuget 搜索 CZGL.SystemInfo 即可安装。 类库中每一个属性和方法,我都加上了注释,调用时可以看得到。 平台通用 CZGL.Sys[......] 继续阅读

2020年3月7日 0条评论 3123点热度 0人点赞 痴者工良 阅读全文

To improve project code quality, analyzers are often installed. However, these analyzers occupy 10MB when generating project program files. Since the[......] 继续阅读

2020年3月6日 2条评论 5037点热度 1人点赞 痴者工良 阅读全文

为了提高项目代码质量,所以往往会安装分析器。 但是呢,这些分析器在生成项目程序文件时,占了 10MB。这些 dll 用不上的,没必要留着占空间。 可以使用 VS 自带的属性管理器去除 也可以手动 打开项目 .csproj 文件,找到如下的两个节点 <PropertyGroup C[......]继续阅读

2020年3月6日 2条评论 5011点热度 1人点赞 痴者工良 阅读全文

%# %# is used for formatted output, typically in the form %#p. %x is used to display in hexadecimal format, but the output format may vary depending o[......] 继续阅读

2020年3月5日 0条评论 3443点热度 1人点赞 痴者工良 阅读全文

%# %# 表示格式化输出,一般这样使用 %#p。 %x 表示输出 16 进制格式,但是受环境影响,格式会变化。 %p 表示输出 16 进制 系统寻址范围为取值范围的整数。 有多少位就打印多少位。32位系统一般是 8 位,64 位系统一般 16 位。不足 8 位自动补 0 ; 例如 int 4 个字[......] 继续阅读

2020年3月5日 0条评论 3383点热度 1人点赞 痴者工良 阅读全文

The analyzer is named miniprofiler, and the official website is https://miniprofiler.com/dotnet/. It can be directly integrated into the code and run[......] 继续阅读

2020年3月2日 2条评论 4256点热度 2人点赞 痴者工良 阅读全文

分析器名为 miniprofiler,官网地址为 https://miniprofiler.com/dotnet/ 可以直接放到代码中,发布后运行测试。 支持以下框架的性能分析: ASP.NET ASP.NET Core Console .NET Console .NET Core EF6 EF[......] 继续阅读

2020年3月2日 2条评论 4264点热度 2人点赞 痴者工良 阅读全文