![]() |
VOOZH | about |
dotnet add package CoreWebAPI.Common --version 1.4.57
NuGet\Install-Package CoreWebAPI.Common -Version 1.4.57
<PackageReference Include="CoreWebAPI.Common" Version="1.4.57" />
<PackageVersion Include="CoreWebAPI.Common" Version="1.4.57" />Directory.Packages.props
<PackageReference Include="CoreWebAPI.Common" />Project file
paket add CoreWebAPI.Common --version 1.4.57
#r "nuget: CoreWebAPI.Common, 1.4.57"
#:package CoreWebAPI.Common@1.4.57
#addin nuget:?package=CoreWebAPI.Common&version=1.4.57Install as a Cake Addin
#tool nuget:?package=CoreWebAPI.Common&version=1.4.57Install as a Cake Tool
myRequest.KeepAlive = true; myRequest.ServicePoint.MaxIdleTime = Timeout;
新增配置(可不加,有默认大小) 限制请求读取大小(默认64Kb) "Middleware", "RecordAccessLogs", "OutputRequestBodySize":1024(1KB) 响应体最大捕获大小(默认32kb)"Middleware", "RecordAccessLogs", "OutputResponseBodySize":1024(1KB) 最大记录日志大小(默认10MB)"Middleware", "RecordAccessLogs", "MaxLogSize":1024(1KB)
新增java用户认证 Authentication-Type配置为"java"启用
Common修改,增加Kafka推送日志逻辑,新增配置:
"Serilog": { "Kafka": { "Enabled": false, "BootstrapServers": "10.124.0.112:19092", "Topic": "auwowh-corelogs", "BatchSize": 1048576, // 批量发送大小 (1MB),增加吞吐量 "LingerMs": 20 // 等待 50ms 攒批,减少系统调用 }, // --- 内存队列与并发配置 --- "MaxQueueSize": 50000, // Channel 队列上限,防止 OOM "ConsumerCount": 2, // 后台并行消费者的数量 (建议 1-4 之间)
连接逻辑优化
新增开关,捕获异常写日志而非输出控制台
修复紧急句柄问题
输出日志逻辑优化、事务锁
输出日志逻辑优化
跨日清理所有Logger逻辑
输出日志路径调整
修改日志输出逻辑 1、最大句柄数由配置文件控制 2、当前句柄数>最大句柄数的一定百分比,且距离上次清理时间>释放时间,执行清理逻辑 3、当前已达最大句柄时,日志写入紧急log,共用同一句柄
appsetting.json新增 "Serilog": { "FileSizeLimitBytes": 536870912, // 滚动创建日志大小,单位KB,默认512M "MaxUserLoggers": 100, // 最大句柄数量,默认50,尽量不要高于50,并发高的情况下容易卡死 "BufferSize": 2000, // 每个句柄可用缓冲区,默认2000,配置越大写入速度越快,但容易导致进程卡死 "IdleReleaseMinutes": 1, // 空闲句柄释放时间,单位分钟,默认10分钟,清理句柄时,超过该时间未使用的句柄会被释放 "CleanPercentage": 0.8, // 执行清理逻辑百分比,默认0.8即80%,句柄数量超过最大句柄数量该百分比值时会执行清理逻辑 "CleanMinutes": 1, // 清理间隔时间,单位分钟,默认5分钟,距离上次执行清理逻辑后过了该时间才会重新清理句柄 "ConfigUpdateMinutes": 5, // 配置刷新时间,单位分钟,默认5分钟,日志相关配置文件修改后不立即生效,服务每过该时间重新获取一次配置 "Error": { // 为了减少句柄数量,该配置弃用,全部使用Info的配置 "Enabled": true, "Path": "", "AllowAllApis": true, "AllowAllUsers": true } },
数据库连接加密
数据库连接加密
用户认证器修复bug 用户认证Redis和通用Redis连接区分,原本后创建的连接会覆盖先创建的连接
用户认证器修复bug 不启用本地Redis认证,或未配置正确的Redis地址时,发起请求时抛出AuthRedis异常问题 AuthRedis异常捕获
用户认证器 本地鉴权校验使用Redis
解决日志有时候不输出问题 输出日志改为同步
解决内存溢出问题, Log.Logger = logger.CreateLogger(); ... Log.CloseAndFlush(); 替换为 var log = logger.CreateLogger(); ... log.Dispose();
ExcelToDataTable使用XSSFWorkbook
输出文件模版调整为{Message:lj}
1.增加TraceIdentifier,表示跟踪日志中的请求的唯一标识符
LogWriteLock读写锁增加异常捕获
NPOI、RestSharp、System.IdentityModel.Tokens.Jwt
CheckCertValid默认false,跳过证书有效性校验
输出Excel日期类型的单元格启用筛选时候仍然按照字符串的方式筛选
空字符串返回0,小数返回整数
String类型nq条件sql错误
日期值单元格类型设置为日期
PgsqlDynamicWhereSqlParaGet:字符串值为null时,查询条件调整为同时null和空串比较
增加路径配置
增加指定路径、用户输出控制
"Serilog": {
"Info": {
"Enabled": true,
"Path": "D:\\Tools\\...\\bin\\Debug\\net5.0\\",
"AllowAllApis": false,
"AllowAPIs": [
"/api/demo/query"
],
"IgnoreApis": [
"/api/values/get"
],
"AllowAllUsers": false,
"AllowUsers": [
"fine"
],
"IgnoreUsers": [
"demo"
]
},
"Error": {
"Enabled": true,
"Path": "D:\\Tools\\...\\bin\\Debug\\net5.0\\",
"AllowAllApis": true,
"AllowAPIs": [
],
"IgnoreApis": [
],
"AllowAllUsers": true,
"AllowUsers": [
],
"IgnoreUsers": [
]
}
},
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on CoreWebAPI.Common:
| Package | Downloads |
|---|---|
|
CoreWebAPI.Extensions
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.57 | 230 | 6/1/2026 |
| 1.4.56 | 239 | 4/23/2026 |
| 1.4.55 | 250 | 3/20/2026 |
| 1.4.54 | 284 | 1/30/2026 |
| 1.4.53 | 295 | 1/30/2026 |
| 1.4.52 | 284 | 1/28/2026 |
| 1.4.51 | 296 | 1/27/2026 |
| 1.4.50 | 573 | 12/17/2025 |
| 1.4.49 | 622 | 10/29/2025 |
| 1.4.48 | 660 | 8/21/2025 |
| 1.4.47 | 427 | 8/8/2025 |
| 1.4.46 | 731 | 7/23/2025 |
| 1.4.45 | 364 | 7/2/2025 |
| 1.4.44 | 309 | 7/2/2025 |
| 1.4.43 | 396 | 6/25/2025 |
| 1.4.42 | 398 | 3/19/2025 |
| 1.4.41 | 337 | 3/19/2025 |
| 1.4.40 | 414 | 3/18/2025 |
| 1.4.39 | 541 | 3/5/2025 |
| 1.4.38 | 404 | 3/5/2025 |