Dotnet SDK/Runtime 安装完毕后,可以看到 C:\Program Files\dotnet 目录,有一个文件为dotnet.exe。 将你的 dotnet 程序(.dll .exe,配置文件等)复制到一个合适的目录。 解压 nssm-2.24.zip 文件,使用 cmd 或 powershell 打开到 nssm 的目录,执行 .\nssm.exe install 会弹出如下窗口 NSSM 下载地址: https://nssm.cc/download https://www.nuget.org/pa…

2020年11月9日 5条评论 43606点热度 1人点赞 痴者工良 阅读全文

Introduction dotnet tool Experience CZGL.SystemInfo SystemPlatformInfo ProcessInfo Memory Monitoring NetworkInfo DiskInfo Introduction CZGL.SystemInfo is a library that supports platforms such as Windows and Linux, capable of obtaining machine hardware informa…

2020年11月8日 0条评论 74点热度 0人点赞 痴者工良 阅读全文

简介 dotnet tool 体验 CZGL.SystemInfo SystemPlatformInfo ProcessInfo 内存监控 NetworkInfo DiskInfo 简介 [......] 继续阅读

2020年11月8日 0条评论 2950点热度 0人点赞 痴者工良 阅读全文

Basics Redis Library Connecting to Redis What can Redis be used for Redis Database Storage Strings Publish and Subscribe RedisValue ASP.NET Core Caching and Distributed Caching In-memory Caching ASP.NET Core In-memory Cache Caching and Storing Data in Memory I…

2020年10月23日 0条评论 58点热度 0人点赞 痴者工良 阅读全文

基础 Redis 库 连接 Redis 能用 redis 干啥 Redis 数据库存储 字符串 订阅发布 RedisValue ASP.NET Core 缓存与分布式缓存 内存中的缓存 ASP.NET Core 的内存缓存 在内存中缓存、存储数据 IMemoryCache MemoryCache 分布式缓存 IDistributedCache Redis 缓存 如果你还没有 redis 集群,可以参考笔者的另一篇文章:搭建分布式 Redis Cluster 集群与 Redis 入门 本文将使用 StackExcha…

2020年10月23日 0条评论 3182点热度 0人点赞 痴者工良 阅读全文

Redis Cluster Setup What is Redis Cluster Redis Cluster Overview Redis Cluster Nodes Redis Cluster Modes Inconsistency Issues Creating and Using Redis Cluster Deploying Three Master Nodes Non-Docker Docker Installation Creating the Cluster Redis Introduction D…

2020年10月18日 0条评论 2735点热度 0人点赞 痴者工良 阅读全文

Redis 集群搭建 Redis 是啥 集群(Cluster) Redis Cluster 说明 Redis Cluster 节点 Redis Cluster 集群模式 不能保证一致性 创建和使用 Redis 集群 部署三个主节点 非 docker docker 安装 创建集群 Redis 入门 Redis 中的数据类型 字符串(string) 哈希(Hash) 列表(Lists) 集合(Set) 有序集合(sorted set) 发现以前也写过一篇 ASP.NET Core 使用 Redis 的文章,入门比较简单…

2020年10月18日 0条评论 2725点热度 0人点赞 痴者工良 阅读全文

Introduction to MongoDB What is MongoDB Structured Data MongoDB and Relational Databases Getting Started with MongoDB Commands Documents .NET Core Example Collections Counting Documents Queries How to Serialize Documents Query the First Record Potential Issues…

2020年10月18日 0条评论 76点热度 0人点赞 痴者工良 阅读全文

浅入 MongoDB MonogoDB 是什么 结构化数据 MongoDB 与关系型数据库 MongoDB 入门命令 文档 .NET Core 示例 集合 统计数量 查询 如何序列化文档 查询第一条记录 不加条件可能导致的问题 查看所有文档 查询结束 转换查询 过滤器 Builders<TDocument> 名称映射 昨天搭建完毕 MongoDB 集群 后,开始计划了解 MongoDB ,并引入使用场景,这里介绍一下学习过程中的一些笔记,帮助读者快速了解 MongoDB 并使用 C# 对其进行编码。 浅…

2020年10月18日 0条评论 3243点热度 0人点赞 痴者工良 阅读全文

Install MongoDB There are many tutorials available online for installing MongoDB, and the official MongoDB documentation can be found here: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ In this article, I will briefly outline the installa…

2020年10月17日 0条评论 62点热度 0人点赞 痴者工良 阅读全文

安装 MongoDB apt 直接安装(方法1) apt 仓库安装(方法2) 方法1、2启动 MongoDB 通过二进制包安装(方法3) 安装依赖 deb 安装 MongoDB tgz 安装 MongoDB 启动 MongoDB 卸载方法 apt 卸载方法 tgz 卸载方法 指定启动的配置 通过配置文件 通过参数 MongoDB 绑定IP、端口 测试远程 IP 连接 加上密码验证 设置账号密码 开启登录验证 停止 MongoDB 搭建集群 副本集 故障转移 方案 设计实例名称 如何创建集群 启动两个实例(配置) 副…

2020年10月17日 0条评论 2692点热度 0人点赞 痴者工良 阅读全文

Note: Important information in this article is masked with ***. Recently, just before the National Day holiday, we encountered a very troublesome problem that kept us working overtime until three in the morning. Background: The client provided some SDK librari…

2020年10月12日 0条评论 66点热度 0人点赞 痴者工良 阅读全文

注:本文重要信息使用 *** 屏蔽关键字。 最近国庆前,项目碰到一个很麻烦的问题,这个问题让我们加班到凌晨三点。 大概背景: 客户给了一些 C语言 写的 SDK 库,这些库打包成 .so 文件,然后我们使用 C# 调用这些库,其中有一个函数是回调函数,参数是结构体,结构体的成员是函数,将 C# 的函数赋值给委托,然后存储到这个委托中。 C# 调用 C 语言的函数,然后 C 语言执行到一些步骤后, C 语言函数调用 C# 的函数。这个在 ARM64 的机器下,是正常的,例如树莓派,华为的鲲鹏服务器等。由于突然改成使用…

2020年10月12日 0条评论 3259点热度 0人点赞 痴者工良 阅读全文

public static class TaskExtensions { public static Task Start(this Task task, out Stopwatch stopwatch) { stopwatch = new Stopwatch(); stopwatch.Start(); return task; } public static Task<T> Start<T>(this Task&lt[......]继续阅读

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

编写一个拓展: public static class TaskExtensions { public static Task Start(this Task task, out Stopwatch stopwatch) { stopwatch = new Stopwatch(); stopwatch.Start(); return task; } public static Task<T> Start<T>(this[......]继续阅读

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

Introduction to ABP Series (6): Database Configuration Copyright © Author: whuanle, reproduction of articles from WeChat public account requires consent from "NCC Open Source Community". Introduction to ABP Series (6): Database Configuration Creating…

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

浅入 ABP 系列(6):数据库配置 版权护体©作者:痴者工良,微信公众号转载文章需要 《NCC开源社区》同意。 浅入 ABP 系列(6):数据库配置 创建标准的 EFCore 数据库上下文 连接字符串 定义隔离的上下文 多数据库支持和配置 Freesql 配置服务 本系列的第五篇:https://www.cnblogs.com/whuanle/p/13061059.html 因为这一部分属于 ASP.NET Core 的基础部分,ABP 没有封装,因此没啥要说的。 这一篇我们将来学习如何在 ABP 中添加数据库配…

2020年9月16日 0条评论 4440点热度 1人点赞 痴者工良 阅读全文

版权护体©作者:whuanle,微信公众号转载文章需要 《NCC开源社区》同意。 Event Bus About Event Bus Why this is needed Event Bus Creation Process Subscribe to Events Events Publish Events Global Exception Handling Added to Event Bus Functionality Create Event Subscribe to Events Publish Event…

2020年9月16日 0条评论 80点热度 0人点赞 痴者工良 阅读全文

版权护体©作者:痴者工良,微信公众号转载文章需要 《NCC开源社区》同意。 事件总线 关于事件总线 为什么需要这个东西 事件总线创建过程 订阅事件 事件 发布事件 全局异常加入事件总线功能 创建事件 订阅事件 发布事件 测试 记录事件 这一篇将来学习 ABP 中的事件总线,然后结合在我们的基架项目中,逐渐构建一个完整的系统。 源码地址:https://github.com/whuanle/AbpBaseStruct 事件总线 关于事件总线 ABP 中,为了方便进程间通讯,给开发者提供了一个叫 事件总线 的功能,事件…

2020年9月16日 0条评论 4395点热度 0人点赞 痴者工良 阅读全文

Automatic Dependency Injection Adding Logging Dependency Adding Logging Functionality Dependency Injection Copyright © Author: whuanle. Reprint of this article in WeChat public account requires consent from "NCC Open Source Community". In the previou…

2020年9月16日 0条评论 82点热度 0人点赞 痴者工良 阅读全文
1272829303154