![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.Net Core
文章平均质量分 55
@9211
这个作者很懒,什么都没留下…
展开
-
微信支付类
引用程序集 Senparc.Weixin.TenPay ( Version—1.3.0.1)原创 2023-01-10 09:46:51 · 231 阅读 · 0 评论 -
ABP VNext 的日志机制 + SeriLog
*原创 2023-01-09 14:28:54 · 637 阅读 · 0 评论 -
.Net Core实现健康检查
在之前我们也说过200为健康,503为不健康那么Healthcheck服务甚至通过以下方式使用其options对象提供自定义状态代码,为我们提供了更改此默认的状态码****我们可以自定义输出,以获取有关每个运行状况检查任务的更清晰详细的信息。如果我们有多个运行状况检查任务来分析哪个任务使整个服务健康状态变为”不正常“,这将非常有用。我们可以通过HealthCheckOptions ResponseWriter属性来实现});现在以json显示我们的详细信息,完成了健康状态的检查.**原创 2023-01-09 14:08:03 · 729 阅读 · 0 评论 -
解决 .NET COER 报 the configured user limit (128) on the number of inotify instances has been reached异常
异常 the configured user limit (128) on the number of inotify instances has been reached原因:在DotNet核心中读取json文件时出错“已达到inotify实例数量的配置用户限制(128)”解决方法:centos 7 参考配置:For Linux:Check current value ofmax_user_instances:$ cat /proc/sys/fs/inotify/max_user_instanc原创 2021-12-27 15:41:20 · 2607 阅读 · 0 评论 -
三种实现word转PDF方式
一、依赖wps插件需求:不打算用office自带的组件实现word转pdf操作环境:安装wps2016专业版1.新建一个控制台应用程序2.添加引用:在COM下 Kingsoft Add-In Designer和Upgrade Kingsoft WPS 3.0 Object Library(Beta)3.引用中出现了Word引用图标,右键—属性—嵌入互操作类型 改为False4.创建转换工具类using System;using System.Collections.Generic;usin原创 2021-03-09 13:42:24 · 1820 阅读 · 1 评论 -
.Net Core通过BackgroundServer构建后台服务
在.Net Core2.1版本中,新增了一个名为BackgroundService的类,隶属于Microsoft.Extensions.Hosting命名空间,用来创建后台任务服务,比如定时推送数据与接收消息等。现在我们来实现一个简单的定时任务。注册服务首先我们先在Startup中注册该服务。services.AddSingleton<IHostedService,TimedExecutService>()其中TimedExecutService是我们基于继承BackgroundServ原创 2020-06-02 10:42:49 · 5268 阅读 · 0 评论