In ControllerBase, its HttpContext is null by default. These properties depend on ControllerContext. Of course, we can also inject IHttpContextAcces[......] 继续阅读
In ControllerBase, its HttpContext is null by default. These properties depend on ControllerContext. Of course, we can also inject IHttpContextAcces[......] 继续阅读
在 ControllerBase 中,其 HttpContext 的默认为空。 这些属性依赖于 ControllerContext。 当然我们也可以注入 IHttpContextAccessor,在每个控制器的构造函数中写进去,比较麻烦。我可以统一通过 控制器激活器进行统一注入。 ///[......]继续阅读
In the backend, when there are distributed demands, we often use 64-bit numeric types to represent field types. However, the frontend does not support[......] 继续阅读
在后端中,当有分布式需求时,我们常常使用 64位 的数字类型表示字段类型,但是前端并不支持超过 16 位长度的数值类型,所以后端长度较大的 long、ulong 数值传到后端,其准确度就已经丢失。 解决方法就是将 ulong、long 转为字符串,传递给后端。 public class Te[......]继续阅读
导读 CZGL.ProcessMetrics 是一个 Metrics 库,能够将程序的 GC、CPU、内存、机器网络、磁盘空间等信息记录下来,使用 Prometheus 采集信息,然后使用 Grafana 显示。 视频地址: https://www.bilibili.com/video/BV18y4[......] 继续阅读
Introduction CZGL.ProcessMetrics is a metrics library that records information about the program's GC (Garbage Collection), CPU, memory, machine netwo[......] 继续阅读
Jenkins 流水线远程部署 .NET Core/Framework 到 IIS 导读 在本章中,将会介绍在 Windows Jenkins 上,编译 .NET Core、.NET Framework 项目,以及远程部署到 IIS 中。 Windows 我们先在 Windows 上安装好相应的环境[......] 继续阅读
Remote Deployment of .NET Core/Framework to IIS via Jenkins Pipeline Introduction In this chapter, we will discuss how to compile .NET Core and .NET F[......] 继续阅读
目录 Introduction Deploying Jenkins Installing Plugins Pulling Images Creating Jenkinsfile Script Building Pipeline Observation Jenkins Build Automati[......] 继续阅读
目录 导读 部署 Jenkins 安装插件 拉取镜像 制作 Jenkinsfile 脚本 构建流水线 观察 Jenkins 构建自动化 .NET Core 发布镜像 导读 在本章中,将介绍如何在 Linux 下使用 Docker 部署、启动 Jenkins,编写脚本,自动化构建 .NET Cor[......] 继续阅读
目前已经完成三篇关于 kubernetes 的文章: 在 Ubuntu 上安装 K8S教程 浅入kubernetes(1):Kubernetes 入门基础 浅入kubernetes(2):Kubernetes 的组成 第二第三篇主要介绍 k8s 中的一些组件、关键字的定义和简述,内容对于新人(例如我[......] 继续阅读
目前已经完成三篇关于 kubernetes 的文章: 在 Ubuntu 上安装 K8S教程 浅入kubernetes(1):Kubernetes 入门基础 浅入kubernetes(2):Kubernetes 的组成 第二第三篇主要介绍 k8s 中的一些组件、关键字的定义和简述,内容对于新人(例如我[......] 继续阅读
目录 Cross-Platform UI Applications Blazor Desktop Applications System.CommandLine Other Updates ASP.NET Core Recently, .NET 6 Preview 1 has been rele[......] 继续阅读
目录 跨平台 UI 应用 Blazor 桌面应用 System.CommandLine 其它更新 ASP.NET Core 最近 .NET 6 Preview 1 发布了,.NET 统一是此版本的核心。大家可以读一下原文博客: https://devblogs.microsoft.com/dot[......] 继续阅读
Managed Code Automatic Memory Management Garbage Collection GC Memory Physical Memory Virtual Memory .NET Memory Composition Memory in CLR CLR[......] 继续阅读
- [托管代码](#托管代码) - [自动内存管理](#自动内存管理) 垃圾回收 GC 内存 物理内存 虚拟内存 .NET 内存组成 CLR 中的内存 CLR 虚拟内存状态 内存分配 内存释放 垃圾回收的条件 托管堆 本机堆(Native Heap) 托管堆(Managed Heap[......] 继续阅读
<!-- TOC --> - [Log and distributed link tracking in .NET Core](#log-and-distributed-link-tracking-in-net-core) - [Logs in .NET Core](#logs[......]继续阅读
Log and distributed link tracking in .NET Core Logs in .NET Core Console output Non-intrusive logging Microsoft.Extensions.Logging ILoggerFactory [......] 继续阅读
说明 Kubernetes集群的组成 What are containerized applications? What are Kubernetes containers? What are Kubernetes pods? What is the difference between cont[......] 继续阅读
说明 Kubernetes集群的组成 What are containerized applications? What are Kubernetes containers? What are Kubernetes pods? What is the difference between conta[......] 继续阅读