区分 调试和发布环境 众所周知,Debug 是在开发、在 VS 中时,自动会有的编译常量,而代码发布后则是 Release。 为了在 Debug、Release 环境下出现不同的编译条件。 .NET Core 项目添加条件编译变量,可在 .csproj 中加上 <PropertyGroup[......]继续阅读
区分 调试和发布环境 众所周知,Debug 是在开发、在 VS 中时,自动会有的编译常量,而代码发布后则是 Release。 为了在 Debug、Release 环境下出现不同的编译条件。 .NET Core 项目添加条件编译变量,可在 .csproj 中加上 <PropertyGroup[......]继续阅读
Distinguishing Debug and Release Environments It is well known that Debug is the compilation constant that is automatically available when developing[......] 继续阅读
0,关于 Redis RESP 1,定义数据类型 2,定义异步消息状态机 3,定义命令发送模板 4,定义 Redis Client 5,实现简单的 RESP 解析 6,实现命令发送客户端 7,如何使用 8,更多客户端 9,更多测试 10,性能测试 11,关于 NCC 最近叶老板写了个 Free[......] 继续阅读
0. About Redis RESP 1. Define Data Types 2. Define Asynchronous Message State Machine 3. Define Command Sending Template 4. Define Redis Client 5. Im[......] 继续阅读
Dotnet SDK/Runtime 安装完毕后,可以看到 C:\Program Files\dotnet 目录,有一个文件为dotnet.exe。 将你的 dotnet 程序(.dll .exe,配置文件等)复制到一个合适的目录。 解压 nssm-2.24.zip 文件,使用 cmd 或[......] 继续阅读
After the Dotnet SDK/Runtime is installed, you can see a file named dotnet.exe in the C:\Program Files\dotnet directory. Copy your dotnet program (.[......] 继续阅读
简介 dotnet tool 体验 CZGL.SystemInfo SystemPlatformInfo ProcessInfo 内存监控 NetworkInfo DiskInfo 简介 [......] 继续阅读
Introduction dotnet tool Experience CZGL.SystemInfo SystemPlatformInfo ProcessInfo Memory Monitoring NetworkInfo DiskInfo Introduction CZGL.System[......] 继续阅读
基础 Redis 库 连接 Redis 能用 redis 干啥 Redis 数据库存储 字符串 订阅发布 RedisValue ASP.NET Core 缓存与分布式缓存 内存中的缓存 ASP.NET Core 的内存缓存 在内存中缓存、存储数据 IMemoryCache MemoryCac[......] 继续阅读
Basics Redis Library Connecting to Redis What can Redis be used for Redis Database Storage Strings Publish and Subscribe RedisValue ASP.NET Cor[......] 继续阅读
浅入 MongoDB MonogoDB 是什么 结构化数据 MongoDB 与关系型数据库 MongoDB 入门命令 文档 .NET Core 示例 集合 统计数量 查询 如何序列化文档 查询第一条记录 不加条件可能导致的问题 查看所有文档 查询结束 转换查询 过滤器 Builders<[......] 继续阅读
Introduction to MongoDB What is MongoDB Structured Data MongoDB and Relational Databases Getting Started with MongoDB Commands Documents .NET C[......] 继续阅读
Install MongoDB There are many tutorials available online for installing MongoDB, and the official MongoDB documentation can be found here: https://do[......] 继续阅读
安装 MongoDB apt 直接安装(方法1) apt 仓库安装(方法2) 方法1、2启动 MongoDB 通过二进制包安装(方法3) 安装依赖 deb 安装 MongoDB tgz 安装 MongoDB 启动 MongoDB 卸载方法 apt 卸载方法 tgz 卸载方法 指定启动的配置 通过[......] 继续阅读
Note: Important information in this article is masked with ***. Recently, just before the National Day holiday, we encountered a very troublesome prob[......] 继续阅读
注:本文重要信息使用 *** 屏蔽关键字。 最近国庆前,项目碰到一个很麻烦的问题,这个问题让我们加班到凌晨三点。 大概背景: 客户给了一些 C语言 写的 SDK 库,这些库打包成 .so 文件,然后我们使用 C# 调用这些库,其中有一个函数是回调函数,参数是结构体,结构体的成员是函数,将[......] 继续阅读
ASP.NET Core 中的策略授权 策略 定义一个 Controller 设定权限 定义策略 存储用户信息 标记访问权限 认证:Token 凭据 颁发登录凭据 自定义授权 IAuthorizationService ABP 授权 创建 ABP 应用 定义权限 Github 仓库源码[......] 继续阅读
Policy-Based Authorization in ASP.NET Core Policy Defining a Controller Setting Permissions Defining Policies Storing User Information Marking Acces[......] 继续阅读
前段时间得知龙芯团队成功移植并开源了 CoreCLR ,忙完事情后,快乐地捣鼓一下这个东西。近年来国产操作系统、芯片等的到很大的关注和快速发展,我们开发的软件适配国产的机器环境就尤为重要,未来 IT 行业的变化会影响到我们的饭碗。 .NET .NET是一个免费的、跨平台的开源开发人员平台,可以构建多[......] 继续阅读
前段时间得知龙芯团队成功移植并开源了 CoreCLR ,忙完事情后,快乐地捣鼓一下这个东西。近年来国产操作系统、芯片等的到很大的关注和快速发展,我们开发的软件适配国产的机器环境就尤为重要,未来 IT 行业的变化会影响到我们的饭碗。 .NET .NET is a free, cross-platfor[......] 继续阅读