定时任务需求 本文示例项目仓库:whuanle/HangfireDemo 主要有两个核心需求: 需要实现秒级定时任务; 开发者使用定时任务要简单,不要弄复杂了; 在微服务架构中中,定时任务是最常用的基础设施组件之一,社区中有很多定时任务类库或平台,例如 Quartz.NET、xxx-job,[......] 继续阅读

2025年4月20日 0条评论 140点热度 0人点赞 痴者工良 阅读全文

Scheduled Task Requirements Sample project repository: whuanle/HangfireDemo There are mainly two core requirements: The need to implement second-lev[......] 继续阅读

2025年4月20日 0条评论 168点热度 0人点赞 痴者工良 阅读全文

编写界面控件,元素由 Grid 和一些控件组成,其中使用了 Expander 以便可以扩展面板内容。 <Grid> <Grid MinWidth="100" Height="50" VerticalAlignment="Top"[......]继续阅读

2024年2月6日 0条评论 3535点热度 3人点赞 痴者工良 阅读全文

The interface control is composed of a Grid and several controls, using an Expander to allow panel content to be expanded. <Grid> &[......]继续阅读

2024年2月6日 0条评论 108点热度 3人点赞 痴者工良 阅读全文

在 ABP 中,默认只有本地 JSON 语言处理,但是在业务上我们可能有好多定制需求。本文介绍如何自己根据 redis 实现一个多语言处理,通过 redis 取得语言信息。 ABP 官方文档:https://docs.abp.io/en/abp/latest/Localization ABP 是这样[......] 继续阅读

2023年7月27日 0条评论 2596点热度 1人点赞 痴者工良 阅读全文

In ABP, by default, only local JSON language handling is available. However, for business purposes, we may have many customization needs. This article[......] 继续阅读

2023年7月27日 0条评论 78点热度 1人点赞 痴者工良 阅读全文

除了手动实现单例模式,也可以使用 Lazy 泛型实现单例模式。 public sealed class Singleton { private static readonly Lazy lazy = new Lazy(() => new Singleton());[......]继续阅读

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

Besides manually implementing the singleton pattern, you can also use the Lazy generic type to implement the singleton pattern. public sealed clas[......]继续阅读

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

新建一个静态类吗,注入 dapper 服务。 /// <summary> /// 注入dapper /// </summary> public static class DapperService { /// <s[......]继续阅读

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

Create a static class to inject Dapper services. /// <summary> /// Inject Dapper /// </summary> public static class Dapper[......]继续阅读

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

来自C#核心技术指南 14.2.6 [......] 继续阅读

2019年12月16日 1条评论 3304点热度 0人点赞 痴者工良 阅读全文

C# Core Technical Guide [......] 继续阅读

2019年12月16日 1条评论 3338点热度 0人点赞 痴者工良 阅读全文

class Program { static void Main(string[] args) { IA aAs = new A(); foreach (var i in aAs) { Console.Write[......]继续阅读

2019年7月20日 0条评论 3243点热度 0人点赞 痴者工良 阅读全文

class Program { static void Main(string[] args) { IA aAs = new A(); foreach (var i in aAs)[......]继续阅读

2019年7月20日 0条评论 78点热度 0人点赞 痴者工良 阅读全文